Skip to content
This repository has been archived by the owner on Jul 19, 2023. It is now read-only.

Commit

Permalink
Fix tests comments
Browse files Browse the repository at this point in the history
  • Loading branch information
simonswine committed Jul 7, 2023
1 parent f1b8151 commit 7884830
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions pkg/phlaredb/query/iters_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -500,19 +500,24 @@ func TestBinaryJoinIterator(t *testing.T) {
expectedResultCount: rowCount / 8 * 2, // expect two eigth of the rows
seriesPredicate: NewMapPredicate(map[int64]struct{}{0: {}, 1: {}}),
},
{
name: "missing series",
expectedResultCount: 0,
seriesPredicate: NewMapPredicate(map[int64]struct{}{10: {}}),
},
{
name: "first two time stamps each",
expectedResultCount: 2 * 8, // expect an eigth of the rows
expectedResultCount: 2 * 8, // expect two profiles for each series
timePredicate: NewIntBetweenPredicate(0, 1000),
},
{
name: "time before results",
expectedResultCount: 0, // expect an eigth of the rows
expectedResultCount: 0,
timePredicate: NewIntBetweenPredicate(-10, -1),
},
{
name: "time after results",
expectedResultCount: 0, // expect an eigth of the rows
expectedResultCount: 0,
timePredicate: NewIntBetweenPredicate(200000, 20001000),
seriesPredicate: NewMapPredicate(map[int64]struct{}{0: {}, 1: {}}),
},
Expand Down

0 comments on commit 7884830

Please sign in to comment.