File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
driver-core/src/test/functional/com/mongodb/internal/async/client
driver-reactive-streams/src/test
functional/com/mongodb/reactivestreams/client
tck/com/mongodb/reactivestreams/client Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ public static AsyncMongoCollection<Document> initializeCollection(final MongoNam
95
95
database .runCommand (new Document ("drop" , namespace .getCollectionName ()), futureResultCallback );
96
96
futureResultCallback .get ();
97
97
} catch (MongoCommandException e ) {
98
- if (!e .getErrorMessage ().startsWith ("ns not found" )) {
98
+ if (!e .getErrorMessage ().contains ("ns not found" )) {
99
99
throw e ;
100
100
}
101
101
} catch (Throwable t ) {
@@ -119,7 +119,7 @@ public static void dropDatabase(final String name) {
119
119
.runCommand (new Document ("dropDatabase" , 1 ), futureResultCallback );
120
120
futureResultCallback .get ();
121
121
} catch (MongoCommandException e ) {
122
- if (!e .getErrorMessage ().startsWith ("ns not found" )) {
122
+ if (!e .getErrorMessage ().contains ("ns not found" )) {
123
123
throw e ;
124
124
}
125
125
} catch (Throwable t ) {
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ public static MongoCollection<Document> initializeCollection(final MongoNamespac
81
81
database .runCommand (new Document ("drop" , namespace .getCollectionName ())).subscribe (subscriber );
82
82
subscriber .await (10 , SECONDS );
83
83
} catch (MongoCommandException e ) {
84
- if (!e .getErrorMessage ().startsWith ("ns not found" )) {
84
+ if (!e .getErrorMessage ().contains ("ns not found" )) {
85
85
throw e ;
86
86
}
87
87
}
@@ -97,7 +97,7 @@ public static void dropDatabase(final String name) throws Throwable {
97
97
getMongoClient ().getDatabase (name ).runCommand (new Document ("dropDatabase" , 1 )).subscribe (subscriber );
98
98
subscriber .await (10 , SECONDS );
99
99
} catch (MongoCommandException e ) {
100
- if (!e .getErrorMessage ().startsWith ("ns not found" )) {
100
+ if (!e .getErrorMessage ().contains ("ns not found" )) {
101
101
throw e ;
102
102
}
103
103
}
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ public static void dropDatabase(final String name) {
77
77
try {
78
78
run (getMongoClient ().getDatabase (name ).runCommand (new Document ("dropDatabase" , 1 )));
79
79
} catch (MongoCommandException e ) {
80
- if (!e .getErrorMessage ().startsWith ("ns not found" )) {
80
+ if (!e .getErrorMessage ().contains ("ns not found" )) {
81
81
throw e ;
82
82
}
83
83
}
You can’t perform that action at this time.
0 commit comments