File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
driver-async/src/test/functional/com/mongodb/async/client Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ public static MongoCollection<Document> initializeCollection(final MongoNamespac
117
117
database .runCommand (new Document ("drop" , namespace .getCollectionName ()), futureResultCallback );
118
118
futureResultCallback .get (60 , SECONDS );
119
119
} catch (MongoCommandException e ) {
120
- if (!e .getErrorMessage ().startsWith ("ns not found" )) {
120
+ if (!e .getErrorMessage ().contains ("ns not found" )) {
121
121
throw e ;
122
122
}
123
123
} catch (Throwable t ) {
@@ -141,7 +141,7 @@ public static void dropDatabase(final String name) {
141
141
.runCommand (new Document ("dropDatabase" , 1 ), futureResultCallback );
142
142
futureResultCallback .get (60 , SECONDS );
143
143
} catch (MongoCommandException e ) {
144
- if (!e .getErrorMessage ().startsWith ("ns not found" )) {
144
+ if (!e .getErrorMessage ().contains ("ns not found" )) {
145
145
throw e ;
146
146
}
147
147
} catch (Throwable t ) {
You can’t perform that action at this time.
0 commit comments