Skip to content

Commit 0f89555

Browse files
Merge pull request #17746 from mfojtik/tweak-dc-e2e-test
Automatic merge from submit-queue (batch tested with PRs 17572, 17746). tweak failing-dc e2e test with sleep so docker have time to get the hook container logs This tweaks the fixture for e2e test where the hook pod is executing really fast and Docker daemon seems to not have enough time to gather the container logs. This is NOT fixing the issue with Docker, but unblocking the queue as this is flaking hard... We should still continue to investigate the issue in Docker. @tnozicka @deads2k
2 parents 78849ac + 6ace95d commit 0f89555

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

test/testdata/failing-dc.yaml

+8-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,14 @@ spec:
2222
execNewPod:
2323
containerName: myapp
2424
command:
25-
- /bin/echo
26-
- test pre hook executed
25+
- /bin/sh
26+
- -c
27+
- |
28+
echo test pre hook executed
29+
# FIXME: The sleep here is needed so the Docker have time to acquire the
30+
# logs from this hook. This is a bug and this sleep should be removed
31+
# when the Docker bug is fixed.
32+
sleep 1
2733
template:
2834
metadata:
2935
creationTimestamp: null

0 commit comments

Comments
 (0)