Skip to content

Commit 8525a53

Browse files
committed
Using require.EventuallyWithT
1 parent 0cd3684 commit 8525a53

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

internal/pkg/remote/client_fips_test.go

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -186,13 +186,9 @@ func TestClientWithCertificate(t *testing.T) {
186186
require.Contains(t, err.Error(), test.expectedHandshakeErr)
187187
}
188188

189-
require.Eventually(
190-
t,
191-
func() bool {
192-
return assert.Contains(t, serverLog.String(), test.expectedServerLog)
193-
},
194-
100*time.Millisecond, 10*time.Millisecond,
195-
)
189+
require.EventuallyWithT(t, func(c *assert.CollectT) {
190+
require.Contains(c, serverLog.String(), test.expectedServerLog)
191+
}, 100*time.Millisecond, 10*time.Millisecond)
196192
})
197193
}
198194
}

0 commit comments

Comments
 (0)