Trying to fix flakyness by making hub_2 and hub_3 serial tests (potential issue on mingw with mmap).

This commit is contained in:
Nicolas Patry
2023-12-29 11:13:33 +01:00
parent a6bd0b47a5
commit 5b12fbb143
2 changed files with 4 additions and 6 deletions

View File

@ -40,8 +40,6 @@ jobs:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
- uses: actions-rs/cargo@v1
with:
command: test

View File

@ -43,11 +43,11 @@ let mmap = unsafe { Mmap::map(&file).unwrap() };
let weights = candle::safetensors::load_buffer(&mmap[..], &Device::Cpu).unwrap();
// ANCHOR_END: book_hub_2
assert_eq!(weights.len(), 206);
}
// }
#[rustfmt::skip]
#[test]
fn book_hub_3() {
// #[rustfmt::skip]
// #[test]
// fn book_hub_3() {
// ANCHOR: book_hub_3
use candle::{DType, Device, Tensor};
use hf_hub::api::sync::Api;