Skip to content

Commit

Permalink
cloud test fix: ServiceDeployment test fails occasionally
Browse files Browse the repository at this point in the history
Test fails intermittently because dind container fails to come up.
The issue appears to be a docker problem where it tries to modify
iptables rules and gets error code 4, similar to this bug:
moby/moby#12547
Fix is to retry starting the container using restartPolicy.
  • Loading branch information
mterrel committed Nov 21, 2019
1 parent 40ccaaa commit 58f2f20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cloud/test/k8s/ServiceDeployment.spec.tsx
Expand Up @@ -203,7 +203,8 @@ describe("k8s ServiceDeployment tests", function () {
handle: dind,
image: dindImg,
environment: { DOCKER_TLS_CERTDIR: "" },
privileged: true
privileged: true,
restartPolicy: { name: "Always" } as const,
};

const cont = <DockerContainer {...contProps} />;
Expand Down

0 comments on commit 58f2f20

Please sign in to comment.