Skip to content

Commit 02aec91

Browse files
committed
clean up the tests
1 parent 873d1f1 commit 02aec91

File tree

3 files changed

+28
-77
lines changed

3 files changed

+28
-77
lines changed

test/discovery_and_monitoring/unified/auth-network-error-fail.json

Lines changed: 26 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -113,40 +113,17 @@
113113
"expectError": {
114114
"isError": true
115115
}
116-
}
117-
],
118-
"expectEvents": [
119-
{
120-
"client": "client",
121-
"eventType": "command",
122-
"events": []
123116
},
124117
{
125-
"client": "client",
126-
"eventType": "cmap",
127-
"events": [
128-
{
129-
"poolReadyEvent": {}
130-
},
131-
{
132-
"poolBackoffEvent": {}
133-
},
134-
{
135-
"poolBackoffEvent": {}
136-
},
137-
{
138-
"poolBackoffEvent": {}
139-
},
140-
{
141-
"poolBackoffEvent": {}
142-
},
143-
{
118+
"name": "waitForEvent",
119+
"object": "testRunner",
120+
"arguments": {
121+
"client": "client",
122+
"event": {
144123
"poolBackoffEvent": {}
145124
},
146-
{
147-
"poolBackoffEvent": {}
148-
}
149-
]
125+
"count": 5
126+
}
150127
}
151128
]
152129
},
@@ -228,6 +205,17 @@
228205
"isError": true
229206
}
230207
},
208+
{
209+
"name": "waitForEvent",
210+
"object": "testRunner",
211+
"arguments": {
212+
"client": "client",
213+
"event": {
214+
"poolBackoffEvent": {}
215+
},
216+
"count": 5
217+
}
218+
},
231219
{
232220
"name": "failPoint",
233221
"object": "testRunner",
@@ -259,43 +247,17 @@
259247
"expectError": {
260248
"isError": true
261249
}
262-
}
263-
],
264-
"expectEvents": [
265-
{
266-
"client": "client",
267-
"eventType": "command",
268-
"events": []
269250
},
270251
{
271-
"client": "client",
272-
"eventType": "cmap",
273-
"events": [
274-
{
275-
"poolReadyEvent": {}
276-
},
277-
{
278-
"poolBackoffEvent": {}
279-
},
280-
{
281-
"poolBackoffEvent": {}
282-
},
283-
{
284-
"poolBackoffEvent": {}
285-
},
286-
{
287-
"poolBackoffEvent": {}
288-
},
289-
{
290-
"poolBackoffEvent": {}
291-
},
292-
{
293-
"poolBackoffEvent": {}
294-
},
295-
{
252+
"name": "waitForEvent",
253+
"object": "testRunner",
254+
"arguments": {
255+
"client": "client",
256+
"event": {
296257
"poolClearedEvent": {}
297-
}
298-
]
258+
},
259+
"count": 1
260+
}
299261
}
300262
]
301263
}

test/discovery_and_monitoring/unified/auth-network-error.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
"event": {
122122
"poolBackoffEvent": {}
123123
},
124-
"count": 1
124+
"count": 2
125125
}
126126
}
127127
],

test/discovery_and_monitoring/unified/auth-network-timeout-error.json

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -121,18 +121,7 @@
121121
"event": {
122122
"poolBackoffEvent": {}
123123
},
124-
"count": 1
125-
}
126-
},
127-
{
128-
"name": "waitForEvent",
129-
"object": "testRunner",
130-
"arguments": {
131-
"client": "client",
132-
"event": {
133-
"poolBackoffEvent": {}
134-
},
135-
"count": 1
124+
"count": 2
136125
}
137126
},
138127
{

0 commit comments

Comments
 (0)