From 3d6b87dcf4ccb8bf1e0418f2383da822bad0f53c Mon Sep 17 00:00:00 2001 From: William Dumont Date: Thu, 13 Feb 2025 15:01:47 +0100 Subject: [PATCH] fix flaky foreach test --- internal/runtime/foreach_stringer_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/runtime/foreach_stringer_test.go b/internal/runtime/foreach_stringer_test.go index d900a7d955..e01fd09970 100644 --- a/internal/runtime/foreach_stringer_test.go +++ b/internal/runtime/foreach_stringer_test.go @@ -52,14 +52,14 @@ func testConfigForEachStringer(t *testing.T, config string, expectedDebugInfo *s if expectedDebugInfo != nil { require.EventuallyWithT(t, func(c *assert.CollectT) { debugInfo := getDebugInfo[string](t, ctrl, "", "testcomponents.string_receiver.log") - require.Equal(t, *expectedDebugInfo, debugInfo) + assert.Equal(c, *expectedDebugInfo, debugInfo) }, 3*time.Second, 10*time.Millisecond) } if expectedDebugInfo2 != nil { require.EventuallyWithT(t, func(c *assert.CollectT) { debugInfo := getDebugInfo[string](t, ctrl, "", "testcomponents.string_receiver.log2") - require.Equal(t, *expectedDebugInfo2, debugInfo) + assert.Equal(c, *expectedDebugInfo2, debugInfo) }, 3*time.Second, 10*time.Millisecond) } }