Skip to content

Commit d795d49

Browse files
authored
DRIVERS-3033 SDAM logging tests should allow durationMS as a float (#1723)
1 parent 376b98a commit d795d49

File tree

6 files changed

+16
-8
lines changed

6 files changed

+16
-8
lines changed

source/server-discovery-and-monitoring/tests/unified/logging-replicaset.json

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/server-discovery-and-monitoring/tests/unified/logging-replicaset.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ tests:
176176
serverPort: { $$type: [int, long] }
177177
driverConnectionId: { $$exists: true }
178178
serverConnectionId: { $$exists: true }
179-
durationMS: { $$type: [int, long] }
179+
durationMS: { $$type: [double, int, long] }
180180
reply:
181181
$$matchAsDocument:
182182
"$$matchAsRoot":
@@ -191,7 +191,7 @@ tests:
191191
serverPort: { $$type: [int, long] }
192192
driverConnectionId: { $$exists: true }
193193
serverConnectionId: { $$exists: true }
194-
durationMS: { $$type: [int, long] }
194+
durationMS: { $$type: [double, int, long] }
195195
reply:
196196
$$matchAsDocument:
197197
"$$matchAsRoot":
@@ -206,7 +206,7 @@ tests:
206206
serverPort: { $$type: [int, long] }
207207
driverConnectionId: { $$exists: true }
208208
serverConnectionId: { $$exists: true }
209-
durationMS: { $$type: [int, long] }
209+
durationMS: { $$type: [double, int, long] }
210210
reply:
211211
$$matchAsDocument:
212212
"$$matchAsRoot":
@@ -285,5 +285,5 @@ tests:
285285
serverHost: { $$type: string }
286286
serverPort: { $$type: [int, long] }
287287
driverConnectionId: { $$exists: true }
288-
durationMS: { $$type: [int, long] }
288+
durationMS: { $$type: [double, int, long] }
289289
failure: { $$exists: true }

source/server-discovery-and-monitoring/tests/unified/logging-sharded.json

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/server-discovery-and-monitoring/tests/unified/logging-sharded.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ tests:
164164
serverPort: { $$type: [int, long] }
165165
driverConnectionId: { $$exists: true }
166166
serverConnectionId: { $$exists: true }
167-
durationMS: { $$type: [int, long] }
167+
durationMS: { $$type: [double, int, long] }
168168
reply:
169169
$$matchAsDocument:
170170
"$$matchAsRoot":
@@ -244,5 +244,5 @@ tests:
244244
serverHost: { $$type: string }
245245
serverPort: { $$type: [int, long] }
246246
driverConnectionId: { $$exists: true }
247-
durationMS: { $$type: [int, long] }
247+
durationMS: { $$type: [double, int, long] }
248248
failure: { $$exists: true }

source/server-discovery-and-monitoring/tests/unified/logging-standalone.json

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/server-discovery-and-monitoring/tests/unified/logging-standalone.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ tests:
169169
serverPort: { $$type: [int, long] }
170170
driverConnectionId: { $$exists: true }
171171
serverConnectionId: { $$exists: true }
172-
durationMS: { $$type: [int, long] }
172+
durationMS: { $$type: [double, int, long] }
173173
reply:
174174
$$matchAsDocument:
175175
"$$matchAsRoot":
@@ -254,5 +254,5 @@ tests:
254254
serverHost: { $$type: string }
255255
serverPort: { $$type: [int, long] }
256256
driverConnectionId: { $$exists: true }
257-
durationMS: { $$type: [int, long] }
257+
durationMS: { $$type: [double, int, long] }
258258
failure: { $$exists: true }

0 commit comments

Comments
 (0)