Skip to content
This repository was archived by the owner on Feb 28, 2021. It is now read-only.

Commit 5b58dcb

Browse files
committed
cli: Add --test-threads=1 option to cargo test
The --test-threads=1 option is required to be able to run end-to-end tests. Without this option, these tests will fail due to running concurrently. Learn more at #214.
1 parent 4c697c2 commit 5b58dcb

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

ci/run

+7-2
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,14 @@ RUST_LOG=error ./target/release/radicle-registry-node \
6161
--base-path /tmp/radicle-registry \
6262
&
6363
registry_node_pid=$!
64+
6465
# We build tests in release mode so that we can reuse the artifacts
65-
# from 'cargo build'
66-
cargo test --workspace --release --color=always
66+
# from 'cargo build'.
67+
#
68+
# Note: the "--test-threads=1" option is required to be able to run
69+
# end-to-end tests. Without this option, these tests will fail
70+
# due to running concurrently. Learn more at https://github.com/radicle-dev/radicle-registry/issues/214.
71+
cargo test --workspace --release --color=always -- --test-threads=1
6772
kill "$registry_node_pid"
6873

6974
echo "--- Copy artifacts"

0 commit comments

Comments
 (0)