Skip to content

Commit

Permalink
sd-reservation: fix not waiting long enough
Browse files Browse the repository at this point in the history
If we do not wait long enough, then the number of `send()`s changes.
  • Loading branch information
sebsura committed Aug 1, 2024
1 parent 2be10c6 commit 1fc1a23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/tests/sd_reservation.cc
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ struct TestJob {
void WaitThenUnreserve(std::unique_ptr<TestJob>&);
void WaitThenUnreserve(std::unique_ptr<TestJob>& job)
{
std::this_thread::sleep_for(std::chrono::milliseconds(10));
std::this_thread::sleep_for(std::chrono::seconds(5));
job->jcr->sd_impl->dcr->UnreserveDevice();
ReleaseDeviceCond();
}
Expand Down

0 comments on commit 1fc1a23

Please sign in to comment.