Fix: for docker versions prior to 10, blank exit code is 0 and not null
@@ -3149,7 +3149,11 @@ public class DefaultDockerClientTest {
final ExecState notStarted = sut.execInspect(execId);
assertThat(notStarted.id(), is(execId));
assertThat(notStarted.running(), is(false));
+ if (dockerApiVersionLessThan("1.22")) {
+ assertThat(notStarted.exitCode(), is(0));
+ } else {
assertThat(notStarted.exitCode(), nullValue());
+ }
assertThat(notStarted.openStdin(), is(true));
assertThat(notStarted.openStderr(), is(true));
assertThat(notStarted.openStdout(), is(true));
