From 1b033471a67fe295d1fb2a266632bc03fb32b6a7 Mon Sep 17 00:00:00 2001 From: Caleb Doxsey Date: Wed, 1 Nov 2023 13:16:35 -0600 Subject: [PATCH] add more time --- config/layered_test.go | 2 +- internal/events/target_test.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/layered_test.go b/config/layered_test.go index 7c4ee7460..4db44eaff 100644 --- a/config/layered_test.go +++ b/config/layered_test.go @@ -49,6 +49,6 @@ func TestLayeredConfig(t *testing.T) { return false } return cfg.Options.GetDeriveInternalDomain() == "b.com" - }, time.Millisecond*100, time.Millisecond) + }, time.Second, time.Millisecond) }) } diff --git a/internal/events/target_test.go b/internal/events/target_test.go index f31655485..f91a5c6d6 100644 --- a/internal/events/target_test.go +++ b/internal/events/target_test.go @@ -31,9 +31,9 @@ func TestTarget(t *testing.T) { shouldBe := func(i1, i2, i3 int64) { t.Helper() - assert.Eventually(t, func() bool { return calls1.Load() == i1 }, time.Millisecond*10, time.Microsecond*100) - assert.Eventually(t, func() bool { return calls2.Load() == i2 }, time.Millisecond*10, time.Microsecond*100) - assert.Eventually(t, func() bool { return calls3.Load() == i3 }, 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.Second, time.Millisecond) + assert.Eventually(t, func() bool { return calls3.Load() == i3 }, time.Second, time.Millisecond) } target.Dispatch(context.Background(), 1)