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

Commit f185e91

Browse files
committed
Fix tests comments
1 parent 82e4f48 commit f185e91

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

pkg/phlaredb/query/iters_test.go

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -385,19 +385,24 @@ func TestBinaryJoinIterator(t *testing.T) {
385385
expectedResultCount: rowCount / 8 * 2, // expect two eigth of the rows
386386
seriesPredicate: NewMapPredicate(map[int64]struct{}{0: {}, 1: {}}),
387387
},
388+
{
389+
name: "missing series",
390+
expectedResultCount: 0,
391+
seriesPredicate: NewMapPredicate(map[int64]struct{}{10: {}}),
392+
},
388393
{
389394
name: "first two time stamps each",
390-
expectedResultCount: 2 * 8, // expect an eigth of the rows
395+
expectedResultCount: 2 * 8, // expect two profiles for each series
391396
timePredicate: NewIntBetweenPredicate(0, 1000),
392397
},
393398
{
394399
name: "time before results",
395-
expectedResultCount: 0, // expect an eigth of the rows
400+
expectedResultCount: 0,
396401
timePredicate: NewIntBetweenPredicate(-10, -1),
397402
},
398403
{
399404
name: "time after results",
400-
expectedResultCount: 0, // expect an eigth of the rows
405+
expectedResultCount: 0,
401406
timePredicate: NewIntBetweenPredicate(200000, 20001000),
402407
seriesPredicate: NewMapPredicate(map[int64]struct{}{0: {}, 1: {}}),
403408
},

0 commit comments

Comments
 (0)