Skip to content

Commit 7228a19

Browse files
Fix a completely unrelated knn test
1 parent 5529293 commit 7228a19

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

algo/src/test/java/org/neo4j/gds/similarity/filteredknn/FilteredKnnIdMappingTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ void shouldIdMapTheSourceNodeFilter() {
7474
var sourceNodesInResult = result
7575
.similarityResultStream()
7676
.map(res -> res.node1)
77+
.map(graph::toOriginalNodeId)
7778
.collect(Collectors.<Long>toSet());
78-
assertThat(sourceNodesInResult).containsExactly(0L);
79+
assertThat(sourceNodesInResult).containsExactly(lowestNeoId);
7980
}
8081
}

0 commit comments

Comments
 (0)