Skip to content

Commit

Permalink
fix(ci): Another attempt to fix hanging example
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-hansen committed Mar 1, 2024
1 parent 3cab09e commit bf1ba58
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
14 changes: 11 additions & 3 deletions examples/cargo-make/playwright-trunk-test.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,17 @@ extend = [
[tasks.integration-test]
description = "Run integration test with automated start and stop of processes"
env = { SPAWN_CLIENT_PROCESS = "1" }
dependencies = ["start", "wait-one", "test-playwright", "stop"]
run_task = { name = ["start", "wait-test-stop"], parallel = true }

[tasks.wait-one]
[tasks.wait-test-stop]
private = true
dependencies = ["wait-server", "test-playwright", "stop"]

[tasks.wait-server]
script = '''
sleep 1
for run in {1..6}; do
echo "Waiting to ensure server is started..."
sleep 10
done
echo "Times up, running tests"
'''
4 changes: 0 additions & 4 deletions examples/error_boundary/Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,3 @@ extend = [
{ path = "../cargo-make/main.toml" },
{ path = "../cargo-make/playwright-trunk-test.toml" },
]

[env]

CLIENT_PROCESS_NAME = "error_boundary"

0 comments on commit bf1ba58

Please sign in to comment.