Skip to content

Commit

Permalink
fix(ingester): adapt test to Lookback flatten
Browse files Browse the repository at this point in the history
  • Loading branch information
sh0rez committed Jul 17, 2019
1 parent a804428 commit d7d903b
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions pkg/ingester/ingester_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,9 @@ func TestIngester(t *testing.T) {
}
err = i.Query(&logproto.QueryRequest{
Query: `{foo="bar"}`,
Lookback: &logproto.Lookback{
Limit: 100,
Start: time.Unix(0, 0),
End: time.Unix(1, 0),
},
Limit: 100,
Start: time.Unix(0, 0),
End: time.Unix(1, 0),
}, &result)
require.NoError(t, err)
require.Len(t, result.resps, 1)
Expand All @@ -70,11 +68,9 @@ func TestIngester(t *testing.T) {
}
err = i.Query(&logproto.QueryRequest{
Query: `{foo="bar",bar="baz1"}`,
Lookback: &logproto.Lookback{
Limit: 100,
Start: time.Unix(0, 0),
End: time.Unix(1, 0),
},
Limit: 100,
Start: time.Unix(0, 0),
End: time.Unix(1, 0),
}, &result)
require.NoError(t, err)
require.Len(t, result.resps, 1)
Expand All @@ -86,11 +82,9 @@ func TestIngester(t *testing.T) {
}
err = i.Query(&logproto.QueryRequest{
Query: `{foo="bar",bar="baz2"}`,
Lookback: &logproto.Lookback{
Limit: 100,
Start: time.Unix(0, 0),
End: time.Unix(1, 0),
},
Limit: 100,
Start: time.Unix(0, 0),
End: time.Unix(1, 0),
}, &result)
require.NoError(t, err)
require.Len(t, result.resps, 1)
Expand Down

0 comments on commit d7d903b

Please sign in to comment.