Skip to content

Commit

Permalink
Serial test runs to allow use of 4 cores on macOS 13.
Browse files Browse the repository at this point in the history
  • Loading branch information
tfpf committed Apr 30, 2024
1 parent 3637cbf commit d8e0e9f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/sanity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-12, ubuntu-22.04, windows-2022]
os: [macos-13, ubuntu-22.04, windows-2022]
steps:
- uses: actions/checkout@v4
- run: cargo -vv run -vv --release
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ jobs:
image: tests32
run: cargo test --release
tests64:
name: tests on 64-bit ubuntu-22.04
runs-on: ubuntu-22.04
name: tests on 64-bit macos-13
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- run: cargo test --release
- run: cargo test --release -- --test-threads=1
4 changes: 2 additions & 2 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,8 @@ mod tests {
#[cfg(target_pointer_width = "64")]
#[test]
fn is_prime_small_test() {
let num_of_primes = primes(0, 3i64.pow(20), 3);
assert_eq!(num_of_primes, 166677978);
let num_of_primes = primes(0, 2i64.pow(33), 4);
assert_eq!(num_of_primes, 393615806);
}

#[test]
Expand Down

0 comments on commit d8e0e9f

Please sign in to comment.