Skip to content

Commit 714aa2d

Browse files
committed
Reduce fragility of integration tests for explain by removing timing-dependent fields from the result document before comparing them.
1 parent f2d4060 commit 714aa2d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

driver-core/src/test/functional/com/mongodb/operation/FindOperationSpecification.groovy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -948,6 +948,8 @@ class FindOperationSpecification extends OperationFunctionalSpecification {
948948
static BsonDocument sanitizeExplainResult(BsonDocument document) {
949949
document.remove('ok')
950950
document.remove('millis')
951+
document.remove('executionStats')
952+
document.remove('serverInfo')
951953
document
952954
}
953955

0 commit comments

Comments
 (0)