test(eks): preserve readiness command failures (#7369)

Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Jackson Price <jxnprice@amazon.com>
Co-authored-by: Andre Kurait <akurait@amazon.com>
This commit is contained in:
Jackson PriceandAndre Kurait authored and GitHub committed 2026-11-02 22:19:55 -04:00
1 parent e09ca1abe5
commit 2b07f85a71
1 file changed
+1 -8
@@ -435,13 +435,6 @@ class EksRegistryHostsDockerIntegrationTest {
}
private ContainerExec.Result execInContainerWithExitCode(String containerId, String[] cmd) {
try {
return ContainerExec.run(dockerClient, containerId, cmd, 30);
} catch (RuntimeException failure) {
if (Thread.currentThread().isInterrupted()) {
throw failure;
}
return new ContainerExec.Result(-1, "", failure.toString(), false);
}
return ContainerExec.run(dockerClient, containerId, cmd, 30);
}
}