Skip to content

Commit 5aac839

Browse files
committed
Update command monitoring test
Ignore cursor test starting with 5.0 server, as expectations have changed slightly for the behavior of cursors. JAVA-4180
1 parent 0a59309 commit 5aac839

File tree

1 file changed

+5
-4
lines changed
  • driver-core/src/test/resources/command-monitoring

1 file changed

+5
-4
lines changed

driver-core/src/test/resources/command-monitoring/find.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
"_id": 0
100100
},
101101
"returnKey": true,
102-
"showRecordId": true,
102+
"showRecordId": true
103103
}
104104
},
105105
"expectations": [
@@ -128,7 +128,7 @@
128128
"_id": 0
129129
},
130130
"returnKey": true,
131-
"showRecordId": true,
131+
"showRecordId": true
132132
},
133133
"command_name": "find",
134134
"database_name": "command-monitoring-tests"
@@ -389,9 +389,10 @@
389389
]
390390
},
391391
{
392-
"description": "A successful find event with a getmore and the server kills the cursor",
392+
"description": "A successful find event with a getmore and the server kills the cursor (<= 4.4)",
393393
"ignore_if_server_version_less_than": "3.1",
394-
"ignore_if_topology_type" : ["sharded"],
394+
"ignore_if_server_version_greater_than": "4.4",
395+
"ignore_if_topology_type": ["sharded"],
395396
"operation": {
396397
"name": "find",
397398
"arguments": {

0 commit comments

Comments
 (0)