Skip to content

Commit

Permalink
Cleanup unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
al8n authored Apr 15, 2024
1 parent 7198d5d commit f010975
Show file tree
Hide file tree
Showing 80 changed files with 4 additions and 3,886 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,6 @@ jobs:
cargo test --no-default-features --features "test,encryption,net,metrics,${{ matrix.runtime }}" -- --test-threads=1
working-directory: ruserf


- name: Run Unit Tests for ruserf based on quinn transport
run: |
cargo test --no-default-features --features "test,compression,quinn,metrics,${{ matrix.runtime }}" -- --test-threads=1
working-directory: ruserf

- name: Cache Cargo registry
uses: actions/cache@v3
with:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ jobs:
- crate: ruserf
features: "test,tokio,tcp,encryption,metrics"
name: "ruserf-tcp-encryption"
- crate: ruserf
features: "test,tokio,quinn,compression,metrics"
name: "ruserf-quinn-compression"
steps:
- uses: actions/checkout@v3
- name: Install latest nightly
Expand Down
5 changes: 4 additions & 1 deletion core/src/serf/base/tests/serf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,10 @@ pub async fn serf_coordinates<T>(
}

if start.elapsed() > Duration::from_secs(7) {
panic!("timed out cond1 {} cond2 {} cond3 {} cond4 {}", cond1, cond2, cond3, cond4);
panic!(
"timed out cond1 {} cond2 {} cond3 {} cond4 {}",
cond1, cond2, cond3, cond4
);
}
}

Expand Down
4 changes: 0 additions & 4 deletions ruserf/test/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ use ruserf_core::tests::run as run_unit_test;
#[path = "./main/net.rs"]
mod net;

#[cfg(feature = "quic")]
#[path = "./main/quic.rs"]
mod quic;

#[cfg(feature = "tokio")]
fn tokio_run(fut: impl Future<Output = ()>) {
let runtime = ::tokio::runtime::Builder::new_multi_thread()
Expand Down
10 changes: 0 additions & 10 deletions ruserf/test/main/TODO.md

This file was deleted.

53 changes: 0 additions & 53 deletions ruserf/test/main/quic.rs

This file was deleted.

86 changes: 0 additions & 86 deletions ruserf/test/main/quic/coordinates.rs

This file was deleted.

11 changes: 0 additions & 11 deletions ruserf/test/main/quic/delegate.rs

This file was deleted.

78 changes: 0 additions & 78 deletions ruserf/test/main/quic/delegate/local_state.rs

This file was deleted.

106 changes: 0 additions & 106 deletions ruserf/test/main/quic/delegate/nodemeta.rs

This file was deleted.

Loading

0 comments on commit f010975

Please sign in to comment.