Skip to content

Commit ce94411

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

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

internal/pkg/remote/client_fips_test.go

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import (
2121
"time"
2222

2323
"github.com/stretchr/testify/assert"
24+
2425
"github.com/stretchr/testify/require"
2526

2627
"github.com/elastic/elastic-agent-libs/transport/httpcommon"
@@ -186,13 +187,9 @@ func TestClientWithCertificate(t *testing.T) {
186187
require.Contains(t, err.Error(), test.expectedHandshakeErr)
187188
}
188189

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-
)
190+
require.EventuallyWithT(t, func(c *assert.CollectT) {
191+
require.Contains(c, serverLog.String(), test.expectedServerLog)
192+
}, 100*time.Millisecond, 10*time.Millisecond)
196193
})
197194
}
198195
}

0 commit comments

Comments
 (0)