add more time

This commit is contained in:
Caleb Doxsey 2023-11-01 13:16:35 -06:00
parent 328d2d500b
commit 1b033471a6
2 changed files with 4 additions and 4 deletions

View file

@ -49,6 +49,6 @@ func TestLayeredConfig(t *testing.T) {
return false return false
} }
return cfg.Options.GetDeriveInternalDomain() == "b.com" return cfg.Options.GetDeriveInternalDomain() == "b.com"
}, time.Millisecond*100, time.Millisecond) }, time.Second, time.Millisecond)
}) })
} }

View file

@ -31,9 +31,9 @@ func TestTarget(t *testing.T) {
shouldBe := func(i1, i2, i3 int64) { shouldBe := func(i1, i2, i3 int64) {
t.Helper() t.Helper()
assert.Eventually(t, func() bool { return calls1.Load() == i1 }, time.Millisecond*10, time.Microsecond*100) assert.Eventually(t, func() bool { return calls1.Load() == i1 }, time.Second, time.Millisecond)
assert.Eventually(t, func() bool { return calls2.Load() == i2 }, time.Millisecond*10, time.Microsecond*100) assert.Eventually(t, func() bool { return calls2.Load() == i2 }, time.Second, time.Millisecond)
assert.Eventually(t, func() bool { return calls3.Load() == i3 }, time.Millisecond*10, time.Microsecond*100) assert.Eventually(t, func() bool { return calls3.Load() == i3 }, time.Second, time.Millisecond)
} }
target.Dispatch(context.Background(), 1) target.Dispatch(context.Background(), 1)