Skip to content

Commit 6c8ebe1

Browse files
committed
fix(test): increase duration thresholds to avoid flaky failures on slow CI
1 parent 9d9a5ee commit 6c8ebe1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/unit/assert_duration_test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# shellcheck disable=SC2329
33

44
function test_successful_assert_duration_within() {
5-
assert_empty "$(assert_duration "sleep 0" 1000)"
5+
assert_empty "$(assert_duration "sleep 0" 5000)"
66
}
77

88
function test_successful_assert_duration_within_fast_command() {
@@ -18,7 +18,7 @@ function test_unsuccessful_assert_duration_exceeds_threshold() {
1818
}
1919

2020
function test_successful_assert_duration_less_than() {
21-
assert_empty "$(assert_duration_less_than "sleep 0" 1000)"
21+
assert_empty "$(assert_duration_less_than "sleep 0" 5000)"
2222
}
2323

2424
function test_unsuccessful_assert_duration_less_than() {

0 commit comments

Comments
 (0)