From 566955167492521a397d4db5bbb816d4a8626c2b Mon Sep 17 00:00:00 2001 From: ioannispan Date: Mon, 30 Oct 2023 14:57:57 +0100 Subject: [PATCH] Fix a completely unrelated knn test --- .../gds/similarity/filteredknn/FilteredKnnIdMappingTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/algo/src/test/java/org/neo4j/gds/similarity/filteredknn/FilteredKnnIdMappingTest.java b/algo/src/test/java/org/neo4j/gds/similarity/filteredknn/FilteredKnnIdMappingTest.java index 2a43c3fc340..8e44f1402e9 100644 --- a/algo/src/test/java/org/neo4j/gds/similarity/filteredknn/FilteredKnnIdMappingTest.java +++ b/algo/src/test/java/org/neo4j/gds/similarity/filteredknn/FilteredKnnIdMappingTest.java @@ -74,7 +74,8 @@ void shouldIdMapTheSourceNodeFilter() { var sourceNodesInResult = result .similarityResultStream() .map(res -> res.node1) + .map(graph::toOriginalNodeId) .collect(Collectors.toSet()); - assertThat(sourceNodesInResult).containsExactly(0L); + assertThat(sourceNodesInResult).containsExactly(lowestNeoId); } }