Skip to content

Commit 93b63bf

Browse files
authored
Retry webhook EOF errors (#2484)
This test sometimes fails due to [1]. [1] knative/pkg#1509 Signed-off-by: Pierangelo Di Pilato <[email protected]>
1 parent d250e80 commit 93b63bf

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/scripts/first-event-delay.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,16 @@ function wait_for_cloudevent {
154154
done
155155
}
156156

157+
function create {
158+
app foo$i | ko resolve ${KO_FLAGS} -Bf - | kubectl apply -f -
159+
}
160+
157161
function run {
158162
i=$1
159163

164+
# Retry 3 times, workaround for https://github.com/knative/pkg/issues/1509
165+
create "$i" || create "$i" || create "$i" || return $?
160166
failed=false
161-
app foo$i | ko resolve ${KO_FLAGS} -Bf - | kubectl apply -f -
162167
kubectl wait kafkachannel --timeout=60s -n foo$i channel --for=condition=Ready=True || failed=true
163168
kubectl wait subscription --timeout=60s -n foo$i event-display --for=condition=Ready=True || failed=true
164169

0 commit comments

Comments
 (0)