We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0cd3684 commit ce94411Copy full SHA for ce94411
1 file changed
internal/pkg/remote/client_fips_test.go
@@ -21,6 +21,7 @@ import (
21
"time"
22
23
"github.com/stretchr/testify/assert"
24
+
25
"github.com/stretchr/testify/require"
26
27
"github.com/elastic/elastic-agent-libs/transport/httpcommon"
@@ -186,13 +187,9 @@ func TestClientWithCertificate(t *testing.T) {
186
187
require.Contains(t, err.Error(), test.expectedHandshakeErr)
188
}
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
- )
+ require.EventuallyWithT(t, func(c *assert.CollectT) {
+ require.Contains(c, serverLog.String(), test.expectedServerLog)
+ }, 100*time.Millisecond, 10*time.Millisecond)
196
})
197
198
0 commit comments