Bats tests fail from time to time
Description
Sometimes test-bats
CI suite fails on test-morley-client.bats
with such output:
$ nix run -f ci.nix pkgs.bats tezos-client -c bats ./scripts/test-morley-client.bats
warning: unknown setting 'experimental-features'
trace: warning: `buildRustCrate` is deprecated, use `buildRustCrateForPkgs` instead
trace: warning: `buildRustCrate` is deprecated, use `buildRustCrateForPkgs` instead
1..8
Tezos address added: tz1NpbW6KL2B9ELL2CEbUj1jZKHNpoC2hYdS
Node is bootstrapped.
Estimated gas: 1420 units (will add 100 for safety)
Estimated storage: 257 bytes added (will add 20 for safety)
Error while applying operation op1KZHv7swEBuUhbga5MAssSgXGo8ZrXKBMob8VSBjSPdfb3efD:
branch refused (Error:
Counter 1149 already used for contract tz1NpbW6KL2B9ELL2CEbUj1jZKHNpoC2hYdS (expected 1150)
)
Fatal error:
transfer simulation failed
not ok 1 setup_file failed
# (from function `source' in file scripts/test-morley-client.bats, line 18,
# from function `bats_run_setup_file' in file /nix/store/l3wbqwhs02bj8pfdj7dz9ckiyc28wxiw-bats-1.3.0/libexec/bats-core/bats-exec-file, line 87,
# from function `main' in test file /nix/store/l3wbqwhs02bj8pfdj7dz9ckiyc28wxiw-bats-1.3.0/libexec/bats-core/bats-exec-file, line 258)
# `bats_run_setup_file' failed
# bats warning: Executed 1 instead of expected 8 tests
Restarting the pipelines helps in this case.
Steps to reproduce
Prerequisites (if needed):
Expected behaviour
Tests always pass
Actual behaviour
Tests fail from time to time
Environment
49de77f8 (current master)