Skip to content

Commit

Permalink
Made random test more random
Browse files Browse the repository at this point in the history
  • Loading branch information
fickludd committed Nov 9, 2017
1 parent a16be14 commit 66c31e4
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ public abstract class RandomRelationshipTraversalCursorTestBase<G extends Kernel
private static final int N_TRAVERSALS = 10_000;
private static int N_NODES = 100;
private static int N_RELATIONSHIPS = 1000;
private static Random random = new Random( 666 );
private static long seed = (new Random()).nextInt();
private static Random random = new Random( seed );
private static List<Long> nodeIds = new ArrayList<>();

@Override
Expand Down Expand Up @@ -109,5 +110,10 @@ public void shouldManageRandomTraversals() throws Exception
}
}
}
catch ( Throwable t )
{
System.err.println( "\nFailed with random seed " + seed );
throw t;
}
}
}

0 comments on commit 66c31e4

Please sign in to comment.