Skip to content

Commit

Permalink
Merge pull request #411 from petermd/fix-schedtests
Browse files Browse the repository at this point in the history
update counter before triggering latch
  • Loading branch information
benjchristensen committed Oct 9, 2013
2 parents 848a4e0 + dbfc9b7 commit b905312
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,8 @@ public void testSchedulingWithDueTime() throws InterruptedException {
@Override
public Subscription call(Scheduler scheduler, String state) {
System.out.println("doing work");
latch.countDown();
counter.incrementAndGet();
latch.countDown();
if (latch.getCount() == 0) {
return Subscriptions.empty();
} else {
Expand Down

0 comments on commit b905312

Please sign in to comment.