Skip to content

Commit

Permalink
Ignore test of $explain modifier on sharded clusters after 4.4
Browse files Browse the repository at this point in the history
The response format has changed, so the test is failing.  Decided
to ignore it rather that try to fix it.
  • Loading branch information
jyemin committed Feb 4, 2021
1 parent acb17d0 commit 491e1c4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ import static com.mongodb.ClusterFixture.getBinding
import static com.mongodb.ClusterFixture.getCluster
import static com.mongodb.ClusterFixture.isSharded
import static com.mongodb.ClusterFixture.serverVersionAtLeast
import static com.mongodb.ClusterFixture.serverVersionGreaterThan
import static com.mongodb.CursorType.NonTailable
import static com.mongodb.CursorType.Tailable
import static com.mongodb.CursorType.TailableAwait
Expand Down Expand Up @@ -697,7 +698,7 @@ class FindOperationSpecification extends OperationFunctionalSpecification {
].combinations()
}


@IgnoreIf({ serverVersionGreaterThan('4.4') && isSharded() })
def 'should explain with $explain modifier'() {
given:
def operation = new FindOperation<BsonDocument>(getNamespace(), new BsonDocumentCodec())
Expand Down

0 comments on commit 491e1c4

Please sign in to comment.