From b64c7d62282d7beea3bf740a938a7c4d38cb2828 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Fri, 11 Feb 2022 00:15:37 -0800 Subject: [PATCH] Improved test [skip ci] --- test/t/003_recall.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/t/003_recall.pl b/test/t/003_recall.pl index 137f1f0..f41000b 100644 --- a/test/t/003_recall.pl +++ b/test/t/003_recall.pl @@ -27,7 +27,7 @@ sub test_recall } } - cmp_ok($count, ">=", $min); + cmp_ok($count / scalar(@expected_ids), ">=", $min); } # Initialize node @@ -50,7 +50,7 @@ my $expected = $node->safe_psql("postgres", "SELECT i FROM tst ORDER BY v <-> '[ $node->safe_psql("postgres", "CREATE INDEX ON tst USING ivfflat (v);"); # Test approximate results -test_recall(1, 5); +test_recall(1, 0.5); # Test probes -test_recall(100, 10); +test_recall(100, 1.0);