assert: remove logs in TestEventuallyTimeout

pull/1412/head
Olivier Mengué 2023-10-16 21:14:11 +02:00
parent e8837d5396
commit 5dca985ff4
1 changed files with 0 additions and 5 deletions

View File

@ -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")
})
}