diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 94b4e29..aa01570 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,11 +1,6 @@ name: Tests on: [push, pull_request] -env: - CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse # Should improve the speed of the build and the cache size. - ZSTD_CLEVEL: 10 # We want some tradeoff between speed and size. - ZSTD_NBTHREADS: 2 # We only got 2 cores. - jobs: check: @@ -192,8 +187,6 @@ jobs: args: --features=no-asm --release -p karlsen-miner - name: Run cargo test release no parking_lot - env: - RUST_BACKTRACE: 1 uses: actions-rs/cargo@v1 with: command: test diff --git a/src/watch.rs b/src/watch.rs index c8908fd..9754c97 100644 --- a/src/watch.rs +++ b/src/watch.rs @@ -445,13 +445,11 @@ mod tests { let barrier_clone = Arc::clone(&barrier); let handle1 = thread::spawn(move || { barrier_clone.wait(); - thread::sleep(std::time::Duration::from_millis(1)); // Added sleep assert_eq!(tx.wait_for_change(), Err(ChannelClosed(()))); }); let barrier_clone = Arc::clone(&barrier); let handle2 = thread::spawn(move || { barrier_clone.wait(); - thread::sleep(std::time::Duration::from_millis(1)); // Added sleep drop(rx); }); barrier.wait();