Skip to content

Commit 46d2047

Browse files
author
Daniel Ruthardt
committed
🩹 Ensure we are using seconds
1 parent 9561066 commit 46d2047

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/core/test/assert_eventually

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ function core::test::assert_eventually() {
4040
local timeout=${timeout:-}
4141

4242
if [[ -z "$timeout" && -n "$1" && "$1" =~ ^[0-9]+$ ]]; then
43-
timeout=$1
43+
timeout="${1}s"
4444
shift
4545
elif [[ -z "$timeout" ]]; then
46-
timeout=5
46+
timeout=5s
4747
fi
4848

4949
if timeout "${timeout}" bash -s -- "$@" <<'EOF' &>/dev/null; then

0 commit comments

Comments
 (0)