Skip to content

Commit

Permalink
Merge pull request #299 from jingyuanliang/sleep
Browse files Browse the repository at this point in the history
Fix install-cni v2 template test cases broken by #297
  • Loading branch information
jingyuanliang authored Apr 11, 2024
2 parents 3623dcc + 80d6e90 commit 171c993
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@ function before_test() {
}
export -f curl

# shellcheck disable=SC2317
function sleep() {
echo "[MOCK called] sleep $*"
echo "[MOCK] this test expects a delay during fast start."
}
export -f sleep

}

function verify() {
Expand Down
7 changes: 7 additions & 0 deletions scripts/testcase/testcase-watchdog-cilium-faststart-v2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ function before_test() {
}
export -f curl

# shellcheck disable=SC2317
function sleep() {
echo "[MOCK called] sleep $*"
echo "[MOCK] this test expects a delay during fast start."
}
export -f sleep

}

function verify() {
Expand Down

0 comments on commit 171c993

Please sign in to comment.