Skip to content

Commit

Permalink
removed env settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Leon1777 committed Jul 19, 2024
1 parent f5c1381 commit 5db4faa
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions src/watch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 5db4faa

Please sign in to comment.