Skip to content

Commit ac52f32

Browse files
committed
fix test
1 parent 0467e06 commit ac52f32

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212
version: v2.36.0
1313
- name: docker compose up
1414
run: docker compose up -d --build
15+
- name: wait for container setup
16+
run: sleep 2
1517
- name: run tests
1618
run: docker compose exec shell-dev-tools bashunit
1719

tests/docker_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ test_dockerll() {
1818
# output shell-dev-tools container
1919
local second_line=$(echo "$output" | sed -n '2p') # @TODO: what if it's not the 2. line?
2020
assert_contains "shell-dev-tools " "$second_line"
21-
assert_matches " Up [0-9]+ minutes " "$second_line"
21+
assert_matches " Up [0-9]+ (seconds|minutes) " "$second_line"
2222
assert_contains " shell-dev-tools_default" "$second_line"
2323
}

0 commit comments

Comments
 (0)