Skip to content

Commit ee212da

Browse files
authored
Fix use of testing.T instead of mtest.T in assertions in subtests. (#1963)
1 parent 5afecc5 commit ee212da

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

internal/integration/csot_prose_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func TestCSOTProse(t *testing.T) {
110110
}
111111

112112
// Assert that Ping fails within 150ms due to server selection timeout.
113-
assert.Eventually(t,
113+
assert.Eventually(mt,
114114
callback,
115115
150*time.Millisecond,
116116
time.Millisecond,
@@ -130,7 +130,7 @@ func TestCSOTProse(t *testing.T) {
130130
}
131131

132132
// Assert that Ping fails within 150ms due to timeout.
133-
assert.Eventually(t,
133+
assert.Eventually(mt,
134134
callback,
135135
150*time.Millisecond,
136136
time.Millisecond,
@@ -150,7 +150,7 @@ func TestCSOTProse(t *testing.T) {
150150
}
151151

152152
// Assert that Ping fails within 150ms due to server selection timeout.
153-
assert.Eventually(t,
153+
assert.Eventually(mt,
154154
callback,
155155
150*time.Millisecond,
156156
time.Millisecond,
@@ -170,7 +170,7 @@ func TestCSOTProse(t *testing.T) {
170170
}
171171

172172
// Assert that Ping fails within 150ms due to server selection timeout.
173-
assert.Eventually(t,
173+
assert.Eventually(mt,
174174
callback,
175175
150*time.Millisecond,
176176
time.Millisecond,

internal/integration/sdam_prose_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ func TestSDAMProse(t *testing.T) {
143143
// The next update will be in ~500ms.
144144
return false
145145
}
146-
assert.Eventually(t,
146+
assert.Eventually(mt,
147147
callback,
148148
defaultCallbackTimeout,
149149
500*time.Millisecond,

0 commit comments

Comments
 (0)