mirror of
https://github.com/navidrome/navidrome.git
synced 2026-04-03 06:41:01 +00:00
Fix flaky tests
This commit is contained in:
parent
cf804a52ef
commit
e89cdf6199
@ -107,7 +107,7 @@ var _ = Describe("Broker", func() {
|
|||||||
Context("when the write does not complete before the timeout", func() {
|
Context("when the write does not complete before the timeout", func() {
|
||||||
BeforeEach(func() {
|
BeforeEach(func() {
|
||||||
timeout = 1 * time.Millisecond
|
timeout = 1 * time.Millisecond
|
||||||
flusher.delay = 10 * time.Millisecond
|
flusher.delay = 2 * time.Second
|
||||||
})
|
})
|
||||||
|
|
||||||
It("should return an errWriteTimeOut error", func() {
|
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() {
|
Context("when the write does not complete before the timeout", func() {
|
||||||
BeforeEach(func() {
|
BeforeEach(func() {
|
||||||
timeout = 1 * time.Millisecond
|
timeout = 1 * time.Millisecond
|
||||||
writer.delay = 10 * time.Millisecond
|
writer.delay = 2 * time.Second
|
||||||
})
|
})
|
||||||
|
|
||||||
It("should return an errWriteTimeOut error", func() {
|
It("should return an errWriteTimeOut error", func() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user