Skip to content

Commit 7677bc9

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 bf90070 commit 7677bc9

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
@@ -100,7 +100,7 @@
100100
"_id": 0
101101
},
102102
"$returnKey": false,
103-
"$showDiskLoc": false,
103+
"$showDiskLoc": false
104104
}
105105
}
106106
},
@@ -130,7 +130,7 @@
130130
"_id": 0
131131
},
132132
"returnKey": false,
133-
"showRecordId": false,
133+
"showRecordId": false
134134
},
135135
"command_name": "find",
136136
"database_name": "command-monitoring-tests"
@@ -393,9 +393,10 @@
393393
]
394394
},
395395
{
396-
"description": "A successful find event with a getmore and the server kills the cursor",
396+
"description": "A successful find event with a getmore and the server kills the cursor (<= 4.4)",
397397
"ignore_if_server_version_less_than": "3.1",
398-
"ignore_if_topology_type" : ["sharded"],
398+
"ignore_if_server_version_greater_than": "4.4",
399+
"ignore_if_topology_type": ["sharded"],
399400
"operation": {
400401
"name": "find",
401402
"arguments": {

0 commit comments

Comments
 (0)