Fix race in test (#157)

This fixes a race condition in a test that has been exposed by
CI.

This commit also disables code coverage checks as it has been
causing CI to hang. See #156.
This commit is contained in:
Carl Lerche
2017-10-18 11:00:56 -07:00
committed by GitHub
parent faf59f7e24
commit 58c55564e2
3 changed files with 27 additions and 13 deletions

View File

@@ -38,12 +38,8 @@ script:
# will not fail on test compile errors.
- cargo build --tests --features unstable
# Run tests, uploading results to codecov.
# hpack tests are _super_ slow in coverage, so skip them here.
- cargo tarpaulin --features unstable --skip-clean --no-count --out Xml -- --skip hpack
# Test _only_ hpack.
- cargo test --lib -- hpack
# Run tests
- RUST_TEST_THREADS=1 cargo test --features unstable
# Run h2spec on stable
- if [ "${TRAVIS_RUST_VERSION}" = "stable" ]; then ./ci/h2spec.sh; fi