Skip to content

Commit

Permalink
Bump timeouts in TestTransactionEvents
Browse files Browse the repository at this point in the history
  • Loading branch information
MishaDemianenko committed Nov 27, 2017
1 parent 32fdd67 commit d469f0b
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -74,6 +74,8 @@ public class TestTransactionEvents
{
@Rule
public final DatabaseRule dbRule = new ImpermanentDatabaseRule();
private static final TimeUnit AWAIT_INDEX_UNIT = TimeUnit.SECONDS;
private static final int AWAIT_INDEX_DURATION = 60;

@Test
public void testRegisterUnregisterHandlers()
Expand Down Expand Up @@ -709,7 +711,7 @@ public Object beforeCommit( TransactionData data ) throws Exception
// When we create a node with the right label, but not the right property...
try ( Transaction tx = db.beginTx() )
{
db.schema().awaitIndexesOnline( 10, TimeUnit.SECONDS );
db.schema().awaitIndexesOnline( AWAIT_INDEX_DURATION, AWAIT_INDEX_UNIT );
Node node = db.createNode( label );
node.setProperty( "random", 42 );
tx.success();
Expand Down Expand Up @@ -754,7 +756,7 @@ public Object beforeCommit( TransactionData data ) throws Exception
// When we create a node with the right property, but not the right label...
try ( Transaction tx = db.beginTx() )
{
db.schema().awaitIndexesOnline( 10, TimeUnit.SECONDS );
db.schema().awaitIndexesOnline( AWAIT_INDEX_DURATION, AWAIT_INDEX_UNIT );
Node node = db.createNode();
node.setProperty( "indexed", "value" );
node.setProperty( "random", 42 );
Expand Down

0 comments on commit d469f0b

Please sign in to comment.