Fix a test expectation that breaks on 17.04-ce
@@ -4586,8 +4586,10 @@ public class DefaultDockerClientTest {
try {
sut.deleteSecret(secretId);
fail("Should fail because of non-existant secret ID");
- } catch (DockerRequestException ex) {
- // Ignored; Docker should return status code 404, but it doesn't for some reason.
+ } catch (DockerRequestException | NotFoundException ex) {
+ // Ignored; Docker should return status code 404,
+ // but it doesn't for some reason in versions < 17.04.
+ // So we catch 2 different exceptions here.
}
}
