Skip to content

Commit

Permalink
Retry webhook EOF errors (#2484)
Browse files Browse the repository at this point in the history
This test sometimes fails due to [1].

[1] knative/pkg#1509

Signed-off-by: Pierangelo Di Pilato <[email protected]>
  • Loading branch information
pierDipi authored Aug 9, 2022
1 parent d250e80 commit 93b63bf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/scripts/first-event-delay.sh
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,16 @@ function wait_for_cloudevent {
done
}

function create {
app foo$i | ko resolve ${KO_FLAGS} -Bf - | kubectl apply -f -
}

function run {
i=$1

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

Expand Down

0 comments on commit 93b63bf

Please sign in to comment.