give time to the db container

Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
Jürgen Eckel 2023-01-16 11:18:29 +01:00
parent 5cdcb54351
commit 9a25e70dda
No known key found for this signature in database
2 changed files with 3 additions and 2 deletions

View File

@ -29,5 +29,5 @@ jobs:
run: pip install -e '.[dev]' run: pip install -e '.[dev]'
- name: Start containers - name: Execute Tests
run: make test run: make test

View File

@ -81,12 +81,13 @@ test: check-deps test-unit test-acceptance ## Run unit and acceptance tests
test-unit: check-deps ## Run all tests once or specify a file/test with TEST=tests/file.py::Class::test test-unit: check-deps ## Run all tests once or specify a file/test with TEST=tests/file.py::Class::test
@$(DC) up -d tarantool @$(DC) up -d tarantool
sleep 3
#wget https://github.com/tendermint/tendermint/releases/download/v0.34.15/tendermint_0.34.15_linux_amd64.tar.gz #wget https://github.com/tendermint/tendermint/releases/download/v0.34.15/tendermint_0.34.15_linux_amd64.tar.gz
#tar zxf tendermint_0.34.15_linux_amd64.tar.gz #tar zxf tendermint_0.34.15_linux_amd64.tar.gz
pytest -m "not abci" pytest -m "not abci"
rm -rf ~/.tendermint && ./tendermint init && ./tendermint node --consensus.create_empty_blocks=false --rpc.laddr=tcp://0.0.0.0:26657 --proxy_app=tcp://localhost:26658& rm -rf ~/.tendermint && ./tendermint init && ./tendermint node --consensus.create_empty_blocks=false --rpc.laddr=tcp://0.0.0.0:26657 --proxy_app=tcp://localhost:26658&
pytest -m abci pytest -m abci
@$(DC) down @$(DC) stop tarantool