From 5dca985ff436d90ab22e35730f37ec049ed4fb0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Mengu=C3=A9?= Date: Mon, 16 Oct 2023 21:14:11 +0200 Subject: [PATCH] assert: remove logs in TestEventuallyTimeout --- assert/assertions_test.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/assert/assertions_test.go b/assert/assertions_test.go index 6ce6d72..75ee795 100644 --- a/assert/assertions_test.go +++ b/assert/assertions_test.go @@ -2876,25 +2876,20 @@ func TestEventuallyTimeout(t *testing.T) { mockT := new(testing.T) NotPanics(t, func() { - t.Log("start") done, done2 := make(chan struct{}), make(chan struct{}) // A condition function that returns after the Eventually timeout condition := func() bool { - t.Log("ok1") // Wait until Eventually times out and terminates <-done close(done2) - t.Log("ok2") return true } False(t, Eventually(mockT, condition, time.Millisecond, time.Microsecond)) - t.Log("Eventually done") close(done) <-done2 - t.Log("Test done") }) }