Skip to content

Commit

Permalink
Tweak timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelreiswildlife committed Jun 14, 2024
1 parent d763367 commit 6609313
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions feedback/invalid_token_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ var _ = Describe("InvalidToken Handler", func() {
mockClient := mocks.NewPGMock(0, 1)
inChan := make(chan *InvalidToken, 100)

config.Set("feedbackListeners.invalidToken.flush.time.ms", 1)
config.Set("feedbackListeners.invalidToken.flush.time.ms", 50)
config.Set("feedbackListeners.invalidToken.buffer.size", 200)

mockStatsDClient = mocks.NewStatsDClientMock()
Expand All @@ -161,7 +161,7 @@ var _ = Describe("InvalidToken Handler", func() {
inChan <- t
}

time.Sleep(time.Second)
time.Sleep(time.Millisecond * 100)
handler.Stop()
time.Sleep(500 * time.Millisecond)

Expand Down

0 comments on commit 6609313

Please sign in to comment.