Fix flaky tests

This commit is contained in:
Deluan 2023-03-30 09:25:18 -04:00
parent cf804a52ef
commit e89cdf6199
1 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@ var _ = Describe("Broker", func() {
Context("when the write does not complete before the timeout", func() {
BeforeEach(func() {
timeout = 1 * time.Millisecond
flusher.delay = 10 * time.Millisecond
flusher.delay = 2 * time.Second
})
It("should return an errWriteTimeOut error", func() {
@ -146,7 +146,7 @@ var _ = Describe("Broker", func() {
Context("when the write does not complete before the timeout", func() {
BeforeEach(func() {
timeout = 1 * time.Millisecond
writer.delay = 10 * time.Millisecond
writer.delay = 2 * time.Second
})
It("should return an errWriteTimeOut error", func() {