File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments