File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
driver-core/src/test/functional/com/mongodb
driver-sync/src/test/functional/com/mongodb/client/unified Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -610,6 +610,10 @@ public static BsonDocument getServerParameters() {
610610 return serverParameters ;
611611 }
612612
613+ public static boolean isUnixSocket () {
614+ return getConnectionString ().getConnectionString ().contains (".sock" );
615+ }
616+
613617 public static boolean isDiscoverableReplicaSet () {
614618 return clusterIsType (REPLICA_SET ) && getClusterConnectionMode () == MULTIPLE ;
615619 }
Original file line number Diff line number Diff line change 1616
1717package com .mongodb .client .unified ;
1818
19+ import com .mongodb .ClusterFixture ;
1920import org .opentest4j .AssertionFailedError ;
2021
2122import java .util .ArrayList ;
2627
2728import static com .mongodb .ClusterFixture .isDiscoverableReplicaSet ;
2829import static com .mongodb .ClusterFixture .isSharded ;
30+ import static com .mongodb .ClusterFixture .isStandalone ;
31+ import static com .mongodb .ClusterFixture .isUnixSocket ;
2932import static com .mongodb .ClusterFixture .serverVersionLessThan ;
3033import static com .mongodb .assertions .Assertions .assertNotNull ;
3134import static com .mongodb .assertions .Assertions .assertTrue ;
@@ -190,6 +193,10 @@ public static void applyCustomizations(final TestDef def) {
190193 .file ("open-telemetry/tests" , "operation find without db.query.text" )
191194 .file ("open-telemetry/tests" , "operation find_retries" );
192195
196+ def .skipAccordingToSpec ("Micrometer tests expect the network transport to be tcp" )
197+ .when (ClusterFixture ::isUnixSocket )
198+ .directory ("open-telemetry/tests" );
199+
193200 // TODO-JAVA-5712
194201
195202 // collection-management
You can’t perform that action at this time.
0 commit comments