Skip to content

Commit c05f4c5

Browse files
committed
[tests] wait after restart
1 parent 1f5c3bd commit c05f4c5

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

.github/workflows/main.yml

-8
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,6 @@ jobs:
4444
shell: bash
4545
run: mongo --version
4646

47-
- name: Reinstall plugins
48-
shell: bash
49-
run: sudo bash ./bin/scripts/countly.install.plugins.sh
50-
5147
- name: ShellCheck
5248
shell: bash
5349
run: countly shellcheck
@@ -60,10 +56,6 @@ jobs:
6056
shell: bash
6157
run: sudo countly task dist-all
6258

63-
- name: Wait for Countly
64-
shell: bash
65-
run: until nc -z 127.0.0.1 3001; do echo Waiting for Countly; sleep 1; done
66-
6759
- name: Tests
6860
shell: bash
6961
run: sudo countly test

bin/commands/scripts/countly.run.tests.sh

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ countly config "drill.record_meta" "true"
88

99
countly restart
1010

11+
until nc -z 127.0.0.1 3001; do echo Waiting for Countly; sleep 1; done
12+
1113
#install test dependencies
1214
( cd "$DIR/../../../" ; sudo npm install --unsafe-perm )
1315
#run tests

0 commit comments

Comments
 (0)