Skip to content

Commit

Permalink
feat(logql-compliance-tester): generate logs outside the query range
Browse files Browse the repository at this point in the history
For edge case testing.
  • Loading branch information
tdakkota committed Apr 18, 2024
1 parent 5b5d31a commit 07bdbf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/logql-compliance-tester/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ func setup(ctx context.Context, cfg Config) (*lokicompliance.Comparer, error) {
zap.Time("end", cfg.End),
)
if err := lokicompliance.GenerateLogs(ctx, targets, lokicompliance.GenerateOptions{
Start: cfg.Start.Truncate(time.Second),
End: cfg.End.Add(time.Second).Truncate(time.Second),
Start: cfg.Start.Truncate(time.Second).Add(-30 * time.Second),
End: cfg.End.Truncate(time.Second).Add(30 * time.Second),
Step: time.Second,
Lines: 5,
Streams: []string{
Expand Down

0 comments on commit 07bdbf0

Please sign in to comment.