From 6000810f463495e4c8ab9979b2be3352e1aab240 Mon Sep 17 00:00:00 2001 From: antoniofilipovic Date: Tue, 21 Nov 2023 16:23:26 +0100 Subject: [PATCH] fix failling test --- Dockerfile.release | 5 +++-- e2e/node_similarity_test/test_list_list_cosine_c/test.yml | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile.release b/Dockerfile.release index 35a3ce3b2..e5f0e85fc 100644 --- a/Dockerfile.release +++ b/Dockerfile.release @@ -30,11 +30,12 @@ RUN apt-get update && apt-get install -y \ COPY memgraph-${TARGETARCH}.deb . +# Hack to remove modules that cause error on loading of torch modules +# Must be here due to multi-phase build. The setup script is in dev phase +# whereas we unpack memgraph in the base phase RUN dpkg -i memgraph-${TARGETARCH}.deb && rm memgraph-${TARGETARCH}.deb && rm /usr/lib/memgraph/query_modules/schema.so \ && rm /usr/lib/memgraph/query_modules/example_cpp.so -RUN ls /usr/lib/memgraph/query_modules/ - ENV LD_LIBRARY_PATH /usr/lib/memgraph/query_modules # Memgraph listens for Bolt Protocol on this port by default. diff --git a/e2e/node_similarity_test/test_list_list_cosine_c/test.yml b/e2e/node_similarity_test/test_list_list_cosine_c/test.yml index 90554aa0b..40296f6f4 100644 --- a/e2e/node_similarity_test/test_list_list_cosine_c/test.yml +++ b/e2e/node_similarity_test/test_list_list_cosine_c/test.yml @@ -1,6 +1,6 @@ query: > MATCH (m) - WHERE m.id > 2 AND m.id < 5 + WHERE m.id > 0 AND m.id < 2 WITH collect(m) as nodes1 MATCH (n)