Skip to content

Commit

Permalink
Equalize some of the timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
BinaryFissionGames committed Feb 23, 2022
1 parent 99ea77f commit c97bd1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion operator/builtin/input/file/rotation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ func (rt rotationTest) run(tc rotationTest, copyTruncate, sequential bool) func(
select {
case e := <-logReceived:
received = append(received, e.Record.(string))
case <-time.After(200 * time.Millisecond):
case <-time.After(3 * time.Second):
break LOOP
}
}
Expand Down
4 changes: 2 additions & 2 deletions operator/builtin/input/file/util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ LOOP:
select {
case e := <-c:
receivedMessages = append(receivedMessages, e.Record.(string))
case <-time.After(time.Second):
case <-time.After(3 * time.Second):
break LOOP
}
}
Expand All @@ -152,7 +152,7 @@ LOOP:
}

func expectNoMessages(t *testing.T, c chan *entry.Entry) {
expectNoMessagesUntil(t, c, 200*time.Millisecond)
expectNoMessagesUntil(t, c, 3*time.Second)
}

func expectNoMessagesUntil(t *testing.T, c chan *entry.Entry, d time.Duration) {
Expand Down

0 comments on commit c97bd1a

Please sign in to comment.