Skip to content

Commit

Permalink
Increase default timeout to wait for response
Browse files Browse the repository at this point in the history
  • Loading branch information
klaren committed Aug 30, 2017
1 parent 5f075d5 commit ca2621a
Showing 1 changed file with 8 additions and 8 deletions.
Expand Up @@ -19,6 +19,11 @@
*/
package org.neo4j.kernel.enterprise.builtinprocs;

import org.hamcrest.Matcher;
import org.junit.Ignore;
import org.junit.Rule;
import org.junit.Test;

import java.io.PrintWriter;
import java.util.HashSet;
import java.util.List;
Expand All @@ -30,11 +35,6 @@
import java.util.function.BiConsumer;
import java.util.function.Supplier;

import org.hamcrest.Matcher;
import org.junit.Ignore;
import org.junit.Rule;
import org.junit.Test;

import org.neo4j.graphdb.Node;
import org.neo4j.graphdb.Result;
import org.neo4j.graphdb.Transaction;
Expand Down Expand Up @@ -83,7 +83,7 @@ protected void configure( GraphDatabaseBuilder builder )
}.startLazily();
@Rule
public final ThreadingRule threads = new ThreadingRule();
private static final int THIRTY_SECONDS_TIMEOUT = 30;
private static final int SECONDS_TIMEOUT = 120;

@Test
public void shouldContainTheQueryItself() throws Exception
Expand Down Expand Up @@ -284,7 +284,7 @@ private void ensureIndexesAreOnline()
{
try ( Transaction tx = db.beginTx() )
{
db.schema().awaitIndexesOnline( 60, SECONDS );
db.schema().awaitIndexesOnline( SECONDS_TIMEOUT, SECONDS );
tx.success();
}
}
Expand Down Expand Up @@ -510,7 +510,7 @@ private <T> Resource<T> test( Supplier<T> setup, BiConsumer<Transaction,T> lock,
{
db.execute( query ).close();
return null;
}, null, waitingWhileIn( GraphDatabaseFacade.class, "execute" ), THIRTY_SECONDS_TIMEOUT, SECONDS );
}, null, waitingWhileIn( GraphDatabaseFacade.class, "execute" ), SECONDS_TIMEOUT, SECONDS );

return new Resource<T>( listQueriesLatch, resource );
}
Expand Down

0 comments on commit ca2621a

Please sign in to comment.