From a70949114573a03906eb47c86124c0e35be49133 Mon Sep 17 00:00:00 2001 From: Matt Dale <9760375+matthewdale@users.noreply.github.com> Date: Mon, 24 Feb 2025 11:29:55 -0800 Subject: [PATCH] Fix use of testing.T instead of mtest.T in assertions in subtests. --- internal/integration/csot_prose_test.go | 8 ++++---- internal/integration/sdam_prose_test.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) 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,