Simplified TAP tests [skip ci]

This commit is contained in:
Andrew Kane
2023-08-11 19:16:08 -07:00
parent 0778a507de
commit 5616c1d7a7
2 changed files with 4 additions and 16 deletions

View File

@@ -92,14 +92,8 @@ foreach (@operators)
} }
$node->safe_psql("postgres", "CREATE INDEX ON tst USING hnsw (v $opclass);"); $node->safe_psql("postgres", "CREATE INDEX ON tst USING hnsw (v $opclass);");
if ($operator eq "<#>") my $min = $operator eq "<#>" ? 0.80 : 0.99;
{ test_recall($min, $operator);
test_recall(0.80, $operator);
}
else
{
test_recall(0.99, $operator);
}
} }
done_testing(); done_testing();

View File

@@ -104,14 +104,8 @@ foreach (@operators)
push(@expected, $res); push(@expected, $res);
} }
if ($operator eq "<#>") my $min = $operator eq "<#>" ? 0.80 : 0.99;
{ test_recall($min, $operator);
test_recall(0.80, $operator);
}
else
{
test_recall(0.99, $operator);
}
$node->safe_psql("postgres", "DROP INDEX idx;"); $node->safe_psql("postgres", "DROP INDEX idx;");
$node->safe_psql("postgres", "TRUNCATE tst;"); $node->safe_psql("postgres", "TRUNCATE tst;");