Skip to content

Commit

Permalink
fix: Use cargo test in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jopemachine committed Oct 9, 2024
1 parent dadf239 commit 3bd1ead
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,8 @@ jobs:
- name: Build and Check Rust unit tests and integration tests all pass
run: |
git submodule update --init
cargo install cargo-nextest
make build
make test
cargo build --workspace
cargo test
- name: Set up Python
uses: actions/setup-python@v3
Expand Down Expand Up @@ -98,6 +97,5 @@ jobs:
- name: Build and Check Rust unit tests and integration tests all pass on Windows
run: |
git submodule update --init
cargo install cargo-nextest
make build
make test
cargo build --workspace
cargo test
2 changes: 2 additions & 0 deletions harness/src/test_environment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ pub fn get_test_environment(test_name: &str) -> TestEnvironment {
.expect("Failed to remove previous logs directory");
}

// Caution: Storing ip_counter in the tempdir result in different test binaries using duplicate loopback IP addresses,
// so we store the ip_counter file in the harness/logs directory.
get_test_environment_with_counter_file(test_name, COUNTER_FILE)
}

Expand Down

0 comments on commit 3bd1ead

Please sign in to comment.