From c6be1c5e13b802f43f698356663e95a02eb9c461 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Mon, 21 Aug 2023 20:45:56 -0700 Subject: [PATCH] Fixed test --- test/t/014_hnsw_inserts.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/t/014_hnsw_inserts.pl b/test/t/014_hnsw_inserts.pl index 0725244..0f95d1f 100644 --- a/test/t/014_hnsw_inserts.pl +++ b/test/t/014_hnsw_inserts.pl @@ -65,7 +65,8 @@ my $count = $node->safe_psql("postgres", qq( SET hnsw.ef_search = 1000; SELECT COUNT(*) FROM (SELECT v FROM tst ORDER BY v <-> (SELECT v FROM tst LIMIT 1)) t; )); -is($count, 1000); +# Elements may lose all incoming connections with the HNSW algorithm +cmp_ok($count, ">=", 997); is(idx_scan(), 21);