Skip to content

Commit 6ace95d

Browse files
committed
add sleep to failing-dc fixture so docker have time to gather logs from hook container
1 parent 61e6f25 commit 6ace95d

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)