Skip to content

Commit

Permalink
try pass CI
Browse files Browse the repository at this point in the history
  • Loading branch information
loongs-zhang committed Feb 3, 2024
1 parent 3ba42bd commit 3b9294a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ cd "${PROJECT_DIR}"/monoio
"${CARGO}" test --target "${TARGET}" --no-default-features --features "async-cancel,bytes,legacy,macros,utils"
"${CARGO}" test --target "${TARGET}" --no-default-features --features "async-cancel,bytes,legacy,macros,utils" --release

if [ "${TARGET}" = "x86_64-unknown-linux-gnu" ]; then
if [ "${TARGET}" = "x86_64-unknown-linux-gnu" ] || [ "${TARGET}" = "i686-unknown-linux-gnu" ]; then

# only enabled uring driver
"${CARGO}" test --target "${TARGET}" --no-default-features --features "async-cancel,bytes,iouring,macros,utils"
Expand Down
4 changes: 2 additions & 2 deletions monoio/tests/fs_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,11 @@ async fn drop_open() {
#[test]
fn drop_off_runtime() {
let tempfile = tempfile();
#[cfg(target_os = "linux")]
#[cfg(all(target_os = "linux", feature = "iouring"))]
let file = monoio::start::<monoio::IoUringDriver, _>(async {
File::open(tempfile.path()).await.unwrap()
});
#[cfg(not(target_os = "linux"))]
#[cfg(not(all(target_os = "linux", feature = "iouring")))]
let file = monoio::start::<monoio::LegacyDriver, _>(async {
File::open(tempfile.path()).await.unwrap()
});
Expand Down

0 comments on commit 3b9294a

Please sign in to comment.