We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9561066 commit 46d2047Copy full SHA for 46d2047
libs/core/test/assert_eventually
@@ -40,10 +40,10 @@ function core::test::assert_eventually() {
40
local timeout=${timeout:-}
41
42
if [[ -z "$timeout" && -n "$1" && "$1" =~ ^[0-9]+$ ]]; then
43
- timeout=$1
+ timeout="${1}s"
44
shift
45
elif [[ -z "$timeout" ]]; then
46
- timeout=5
+ timeout=5s
47
fi
48
49
if timeout "${timeout}" bash -s -- "$@" <<'EOF' &>/dev/null; then
0 commit comments