Skip to content

Commit 579433a

Browse files
committed
zsh
1 parent 87b638a commit 579433a

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.github/workflows/build_linux.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ jobs:
2626
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
2727
restore-keys: |
2828
${{ runner.os }}-cargo-
29-
- name: Install zsh
30-
run: sudo apt-get install -y zsh
3129
3230
- name: Set up Rust toolchain
3331
uses: actions-rs/toolchain@v1

.github/workflows/build_mac.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ jobs:
2626
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
2727
restore-keys: |
2828
${{ runner.os }}-cargo-
29-
- name: Install zsh
30-
run: brew install zsh
3129
3230
- name: Set up Rust toolchain
3331
uses: actions-rs/toolchain@v1

src/lib.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -948,11 +948,16 @@ mod tests {
948948
result.duration > Duration::from_secs(2),
949949
"Duration should be > 2s"
950950
); // 20 * 0.1s
951+
#[cfg(not(target_os = "macos"))]
951952
assert!(
952953
result.duration < Duration::from_secs(3),
953954
"Duration should be < 3s"
954955
);
955-
956+
#[cfg(target_os = "macos")]
957+
assert!(
958+
result.duration < Duration::from_secs(4),
959+
"Duration should be < 4s"
960+
); // macOS has longer sleep resolution
956961
});
957962
}
958963

0 commit comments

Comments
 (0)