fix query behaviour when limit is present (reported by @Mazin)

This commit is contained in:
Doug Hoyte
2023-02-21 16:42:45 -05:00
parent e5e5ff6817
commit 5175664e2f
11 changed files with 417 additions and 447 deletions

View File

@ -198,7 +198,7 @@ sub testScan {
my $headCmd = @$fg == 1 && $fg->[0]->{limit} ? "| head -n $fg->[0]->{limit}" : "";
my $resA = `./strfry export --reverse 2>/dev/null | perl test/dumbFilter.pl '$fge' $headCmd | jq -r .id | sort | sha256sum`;
my $resB = `./strfry scan --metrics '$fge' | jq -r .id | sort | sha256sum`;
my $resB = `./strfry scan --pause 1 --metrics '$fge' | jq -r .id | sort | sha256sum`;
print "$resA\n$resB\n";