diff --git a/internal/integration/csot_prose_test.go b/internal/integration/csot_prose_test.go index f6696c3d83..ce7219b042 100644 --- a/internal/integration/csot_prose_test.go +++ b/internal/integration/csot_prose_test.go @@ -110,7 +110,7 @@ func TestCSOTProse(t *testing.T) { } // Assert that Ping fails within 150ms due to server selection timeout. - assert.Eventually(t, + assert.Eventually(mt, callback, 150*time.Millisecond, time.Millisecond, @@ -130,7 +130,7 @@ func TestCSOTProse(t *testing.T) { } // Assert that Ping fails within 150ms due to timeout. - assert.Eventually(t, + assert.Eventually(mt, callback, 150*time.Millisecond, time.Millisecond, @@ -150,7 +150,7 @@ func TestCSOTProse(t *testing.T) { } // Assert that Ping fails within 150ms due to server selection timeout. - assert.Eventually(t, + assert.Eventually(mt, callback, 150*time.Millisecond, time.Millisecond, @@ -170,7 +170,7 @@ func TestCSOTProse(t *testing.T) { } // Assert that Ping fails within 150ms due to server selection timeout. - assert.Eventually(t, + assert.Eventually(mt, callback, 150*time.Millisecond, time.Millisecond, diff --git a/internal/integration/sdam_prose_test.go b/internal/integration/sdam_prose_test.go index 74e5d809fe..4995b7e90b 100644 --- a/internal/integration/sdam_prose_test.go +++ b/internal/integration/sdam_prose_test.go @@ -143,7 +143,7 @@ func TestSDAMProse(t *testing.T) { // The next update will be in ~500ms. return false } - assert.Eventually(t, + assert.Eventually(mt, callback, defaultCallbackTimeout, 500*time.Millisecond,