Skip to content

Commit

Permalink
test(ci): wait 1s so that server is started
Browse files Browse the repository at this point in the history
  • Loading branch information
Totodore committed Jan 16, 2025
1 parent 3794644 commit bf2fd10
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/github-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,8 @@ jobs:
run: |
cd e2e/engineioxide/test-suites && npm install && cd ../../..
cargo build -p engineioxide-e2e --bin engineioxide-e2e -F ${{ matrix.engineio-version }} -r
cargo run -p engineioxide-e2e --bin engineioxide-e2e -F ${{ matrix.engineio-version }} -r > server.txt & node --test-reporter=spec --experimental-strip-types e2e/engineioxide/test-suites/${{ matrix.engineio-version }}.ts > client.txt
cargo run -p engineioxide-e2e --bin engineioxide-e2e -F ${{ matrix.engineio-version }} -r > server.txt && sleep 1 & \
node --test-reporter=spec --experimental-strip-types e2e/engineioxide/test-suites/${{ matrix.engineio-version }}.ts > client.txt
- name: Server output
if: always()
run: cat server.txt
Expand Down Expand Up @@ -233,7 +234,8 @@ jobs:
VERSION=$(echo ${{ matrix.socketio-version }} | cut -d'-' -f1)
cd e2e/socketioxide/test-suites && npm install && cd ../../..
cargo build -p socketioxide-e2e --bin socketioxide-e2e -F $VERSION,$PARSER -r
cargo run -p socketioxide-e2e --bin socketioxide-e2e -F $VERSION,$PARSER -r > server.txt & node --test-reporter=spec --experimental-strip-types e2e/socketioxide/test-suites/${{ matrix.socketio-version }}.ts > client.txt
cargo run -p socketioxide-e2e --bin socketioxide-e2e -F $VERSION,$PARSER -r > server.txt && sleep 1 & \
node --test-reporter=spec --experimental-strip-types e2e/socketioxide/test-suites/${{ matrix.socketio-version }}.ts > client.txt
- name: Server output
if: always()
run: cat server.txt
Expand Down

0 comments on commit bf2fd10

Please sign in to comment.