File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
driver-sync/src/test/functional/com/mongodb/client Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 144
144
-Dorg.mongodb.test.gcpEmail=${GCP_EMAIL} -Dorg.mongodb.test.gcpPrivateKey=${GCP_PRIVATE_KEY} \
145
145
${MULTI_MONGOS_URI_SYSTEM_PROPERTY} ${API_VERSION} ${GRADLE_EXTRA_VARS} ${ASYNC_TYPE} \
146
146
${JAVA_SYSPROP_NETTY_SSL_PROVIDER} \
147
- --stacktrace --info --continue test
147
+ --stacktrace --info --continue driver-reactive-stream: test
148
148
fi
Original file line number Diff line number Diff line change @@ -137,11 +137,18 @@ public void testThatCustomSslContextIsUsed() {
137
137
}})
138
138
.build ();
139
139
try (ClientEncryption clientEncryption = getClientEncryption (clientEncryptionSettings )) {
140
+ outer :
140
141
for (String curProvider : kmsProviders .keySet ()) {
141
- MongoClientException e = assertThrows (MongoClientException .class , () ->
142
+ Throwable e = assertThrows (MongoClientException .class , () ->
142
143
clientEncryption .createDataKey (curProvider , new DataKeyOptions ().masterKey (
143
144
BsonDocument .parse (getMasterKey (curProvider )))));
144
- assertTrue (e .getMessage ().contains ("Don't trust anything" ));
145
+ while (e != null ) {
146
+ if (e .getMessage ().contains ("Don't trust anything" )) {
147
+ break outer ;
148
+ }
149
+ e = e .getCause ();
150
+ }
151
+ fail ("No exception in the cause chain contains the expected string" );
145
152
}
146
153
}
147
154
}
You can’t perform that action at this time.
0 commit comments