Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DomPeliniAerospike committed Oct 17, 2024
1 parent ad50ccf commit d4cbb2c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 20 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/build-bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,7 @@ jobs:
- name: Run Aerospike server
if: ${{ !contains(github.event.pull_request.labels.*.name, 'new-server-features') }}
run: |
cd ts-test;
npm i --save-dev @types/mocha;
npm i --save-dev @types/yargs;
npm i --save-dev @types/semver;
npm i --save-dev @types/chai;
tsc;
cd ..;
npm i -g @types/mocha @types/yargs @types/semver @types/chai
docker run -d --name aerospike -p 3000-3002:3000-3002 aerospike/aerospike-server
Expand Down Expand Up @@ -196,7 +190,7 @@ jobs:
sudo apt-get install -y make;
sudo apt install build-essential;
./scripts/build-c-client.sh
npm install
npm install -g
env:
CFLAGS: '-Werror'

Expand Down
19 changes: 7 additions & 12 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -231,22 +231,17 @@ jobs:



- name: Wait for database to be ready
# Should be ready after 3 seconds
run: sleep 15
# - name: Wait for database to be ready
# # Should be ready after 3 seconds
# run: sleep 15

- name: Run tests
run: |
npm i -g @types/mocha @types/yargs @types/semver @types/chai
npm install -g;
docker run -d --name aerospike -p 3000-3002:3000-3002 aerospike/aerospike-server aerospike:ce-7.2.0.1_1
cd ts-test;
npm i --save-dev @types/mocha;
npm i --save-dev @types/yargs;
npm i --save-dev @types/semver;
npm i --save-dev @types/chai;
npm install ..;
tsc;
cd ..;
npm run ts-test -- --h 0.0.0.0 --port 3000;
sleep 10
npm run ts-test -- --h 127.0.0.1 --port 3000;
test-lowest-supported-server:
runs-on: ubuntu-latest
Expand Down

0 comments on commit d4cbb2c

Please sign in to comment.