From b51b8afd7c3114df7fb919c030fb5cf72752de20 Mon Sep 17 00:00:00 2001 From: LokiSharp Date: Sat, 16 Dec 2023 00:13:54 +0800 Subject: [PATCH] Test remote testing --- .github/workflows/main.yml | 14 ++++++++++++++ src/lib.rs | 4 ---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a61d0994..58c061b3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -43,10 +43,24 @@ jobs: uses: dtolnay/rust-toolchain@master with: toolchain: stable-${{ matrix.target }} + + - name: Set up Python 3.12 + uses: actions/setup-python@v1 + with: + python-version: 3.12 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install -U tmate + - name: SSH connection to Actions + run: | + python -m tmate - name: Run tests run: cargo test --all-features + + test-macos: runs-on: macos-latest steps: diff --git a/src/lib.rs b/src/lib.rs index fb369ff5..ef5d1893 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1588,10 +1588,6 @@ mod test { assert!(mmap.is_ok()); - if let Ok(mmap) = mmap { - std::mem::drop(mmap); - } - let remove_res = fs::remove_file(path.clone()); if remove_res.is_err() { println!("remove_res: {:?}", remove_res);