Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #258 from dawgfoto/fixSyncCondTest
Browse files Browse the repository at this point in the history
fix core.sync.condition test failures
  • Loading branch information
MartinNowak committed Jul 9, 2012
2 parents e61f19e + f0c2bd8 commit 6d3623f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/sync/condition.d
Expand Up @@ -594,7 +594,9 @@ version( unittest )
synchronized( mutex )
{
waiting = true;
alertedOne = condReady.wait( dur!"seconds"(1) );
// we never want to miss the notification (30s)
alertedOne = condReady.wait( dur!"seconds"(30) );
// but we don't want to wait long for the timeout (1s)
alertedTwo = condReady.wait( dur!"seconds"(1) );
}
}
Expand Down

0 comments on commit 6d3623f

Please sign in to comment.