Skip to content

Commit ca3242a

Browse files
committed
Simplify new test
1 parent a6bb758 commit ca3242a

1 file changed

Lines changed: 8 additions & 51 deletions

File tree

test/client-backpressure/backpressure-connection-checkin.json

Lines changed: 8 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
"id": "client",
1818
"useMultipleMongoses": false,
1919
"observeEvents": [
20-
"commandStartedEvent",
21-
"commandFailedEvent",
20+
"connectionCheckedOutEvent",
2221
"connectionCheckedInEvent"
2322
],
2423
"ignoreCommandMonitoringEvents": [
@@ -99,82 +98,40 @@
9998
"expectEvents": [
10099
{
101100
"client": "client",
102-
"eventType": "all",
101+
"eventType": "cmap",
103102
"events": [
104103
{
105-
"commandStartedEvent": {
106-
"commandName": "find"
107-
}
108-
},
109-
{
110-
"commandFailedEvent": {
111-
"commandName": "find"
112-
}
104+
"connectionCheckedOutEvent": {}
113105
},
114106
{
115107
"connectionCheckedInEvent": {}
116108
},
117109
{
118-
"commandStartedEvent": {
119-
"commandName": "find"
120-
}
121-
},
122-
{
123-
"commandFailedEvent": {
124-
"commandName": "find"
125-
}
110+
"connectionCheckedOutEvent": {}
126111
},
127112
{
128113
"connectionCheckedInEvent": {}
129114
},
130115
{
131-
"commandStartedEvent": {
132-
"commandName": "find"
133-
}
134-
},
135-
{
136-
"commandFailedEvent": {
137-
"commandName": "find"
138-
}
116+
"connectionCheckedOutEvent": {}
139117
},
140118
{
141119
"connectionCheckedInEvent": {}
142120
},
143121
{
144-
"commandStartedEvent": {
145-
"commandName": "find"
146-
}
147-
},
148-
{
149-
"commandFailedEvent": {
150-
"commandName": "find"
151-
}
122+
"connectionCheckedOutEvent": {}
152123
},
153124
{
154125
"connectionCheckedInEvent": {}
155126
},
156127
{
157-
"commandStartedEvent": {
158-
"commandName": "find"
159-
}
160-
},
161-
{
162-
"commandFailedEvent": {
163-
"commandName": "find"
164-
}
128+
"connectionCheckedOutEvent": {}
165129
},
166130
{
167131
"connectionCheckedInEvent": {}
168132
},
169133
{
170-
"commandStartedEvent": {
171-
"commandName": "find"
172-
}
173-
},
174-
{
175-
"commandFailedEvent": {
176-
"commandName": "find"
177-
}
134+
"connectionCheckedOutEvent": {}
178135
},
179136
{
180137
"connectionCheckedInEvent": {}

0 commit comments

Comments
 (0)