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

Commit 7884830

Browse files
committedJul 7, 2023
Fix tests comments
1 parent f1b8151 commit 7884830

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed
 

‎pkg/phlaredb/query/iters_test.go

+8-3
Original file line numberDiff line numberDiff line change
@@ -500,19 +500,24 @@ func TestBinaryJoinIterator(t *testing.T) {
500500
expectedResultCount: rowCount / 8 * 2, // expect two eigth of the rows
501501
seriesPredicate: NewMapPredicate(map[int64]struct{}{0: {}, 1: {}}),
502502
},
503+
{
504+
name: "missing series",
505+
expectedResultCount: 0,
506+
seriesPredicate: NewMapPredicate(map[int64]struct{}{10: {}}),
507+
},
503508
{
504509
name: "first two time stamps each",
505-
expectedResultCount: 2 * 8, // expect an eigth of the rows
510+
expectedResultCount: 2 * 8, // expect two profiles for each series
506511
timePredicate: NewIntBetweenPredicate(0, 1000),
507512
},
508513
{
509514
name: "time before results",
510-
expectedResultCount: 0, // expect an eigth of the rows
515+
expectedResultCount: 0,
511516
timePredicate: NewIntBetweenPredicate(-10, -1),
512517
},
513518
{
514519
name: "time after results",
515-
expectedResultCount: 0, // expect an eigth of the rows
520+
expectedResultCount: 0,
516521
timePredicate: NewIntBetweenPredicate(200000, 20001000),
517522
seriesPredicate: NewMapPredicate(map[int64]struct{}{0: {}, 1: {}}),
518523
},

0 commit comments

Comments
 (0)
Failed to load comments.