File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
alpha/alpha-embeddings/src/test/java/org/neo4j/gds/embeddings/node2vec Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -71,14 +71,14 @@ void doesNotCauseStackOverflow() {
7171 10 ,
7272 TestProgressLogger .NULL_LOGGER
7373 );
74- // does not overflow the stack = passes test
7574
7675 var counter = 0L ;
7776 while (sampleProducer .hasNext ()) {
7877 counter ++;
7978 sampleProducer .next (new long [2 ]);
8079 }
8180
81+ // does not overflow the stack = passes test
8282 assertEquals (0 , counter , "no samples possible here because walks are too short" );
8383 }
8484
@@ -93,7 +93,7 @@ void doesNotCauseStackOverflowDueToBadLuck() {
9393 .toArray (new long [][]{})
9494 );
9595
96- // our sample producer is supposed to work within the first 3 walks
96+ // our sample producer is supposed to work within the first nbrOfWalks - 1 walks
9797 // it prefetches in the constructor
9898 HugeDoubleArray probabilities = HugeDoubleArray .of (LongStream .range (0 , nbrOfWalks ).mapToDouble ((l ) -> 0 ).toArray ());
9999 var sampleProducer = new PositiveSampleProducer (
You can’t perform that action at this time.
0 commit comments