Skip to content

Commit

Permalink
ISPN-1123 - SyncReplImplicitLockingTest: Allow more time for the time…
Browse files Browse the repository at this point in the history
…out to kick in
  • Loading branch information
Dan Berindei authored and maniksurtani committed Aug 5, 2011
1 parent 35334e1 commit 07a1f88
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@
import org.infinispan.config.Configuration;
import org.infinispan.test.MultipleCacheManagersTest;
import org.infinispan.test.TestingUtil;

import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertNull;
import org.testng.annotations.Test;

import javax.transaction.TransactionManager;
Expand All @@ -38,6 +35,8 @@
import java.util.concurrent.TimeUnit;

import static org.infinispan.test.TestingUtil.assertNoLocks;
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertNull;

/**
* Tests for implicit locking
Expand Down Expand Up @@ -171,7 +170,7 @@ public void run() {
t.start();

// wait till the put in thread t times out
assert latch.await(1, TimeUnit.SECONDS) : "Concurrent put didn't time out!";
assert latch.await(5, TimeUnit.SECONDS) : "Concurrent put didn't time out!";
mgr.commit();

t.join();
Expand Down

0 comments on commit 07a1f88

Please sign in to comment.