Skip to content

Commit

Permalink
[chore] Fix race condition in recombine operator test (#24244)
Browse files Browse the repository at this point in the history
Fixes #20877
  • Loading branch information
djaglowski authored Jul 13, 2023
1 parent 1005a5c commit 64ebbfd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/stanza/operator/transformer/recombine/recombine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,8 @@ func TestTimeoutWhenAggregationKeepHappen(t *testing.T) {
require.NoError(t, recombine.Process(ctx, e))

go func() {
next := e.Copy()
next := entry.New()
next.Timestamp = time.Now()
next.Body = "next"
for {
time.Sleep(cfg.ForceFlushTimeout / 2)
Expand Down

0 comments on commit 64ebbfd

Please sign in to comment.