Skip to content

Commit

Permalink
chore: fix test error
Browse files Browse the repository at this point in the history
  • Loading branch information
hardfist committed Dec 30, 2024
1 parent 4da130b commit 3eaae99
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions crates/rspack_loader_runner/src/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ mod test {
rs.clone(),
Some(Arc::new(TestContentPlugin)),
(),
Arc::new(NativeFileSystem {})
Arc::new(NativeFileSystem::new(false))
)
.await
.err()
Expand All @@ -457,7 +457,7 @@ mod test {
rs.clone(),
Some(Arc::new(TestContentPlugin)),
(),
Arc::new(NativeFileSystem {})
Arc::new(NativeFileSystem::new(false))
)
.await
.err()
Expand Down Expand Up @@ -541,7 +541,7 @@ mod test {
rs,
Some(Arc::new(TestContentPlugin)),
(),
Arc::new(NativeFileSystem {}),
Arc::new(NativeFileSystem::new(false)),
)
.await
.unwrap();
Expand Down Expand Up @@ -608,7 +608,7 @@ mod test {
rs,
Some(Arc::new(TestContentPlugin)),
(),
Arc::new(NativeFileSystem {})
Arc::new(NativeFileSystem::new(false))
)
.await
.err()
Expand Down
2 changes: 1 addition & 1 deletion crates/rspack_storage/src/pack/strategy/split/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ pub mod test_pack_utils {
get_memory_path(case),
),
(
Arc::new(BridgeFileSystem(Arc::new(NativeFileSystem {}))),
Arc::new(BridgeFileSystem(Arc::new(NativeFileSystem::new(false)))),
get_native_path(case),
),
];
Expand Down
2 changes: 1 addition & 1 deletion crates/rspack_storage/tests/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ mod test_storage_build {
let cases = [
(
get_native_path("test_build_native"),
Arc::new(BridgeFileSystem(Arc::new(NativeFileSystem {}))),
Arc::new(BridgeFileSystem(Arc::new(NativeFileSystem::new(false)))),
),
(
get_memory_path("test_build_memory"),
Expand Down
2 changes: 1 addition & 1 deletion crates/rspack_storage/tests/dev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ mod test_storage_dev {
let cases = [
(
get_native_path("test_dev_native"),
Arc::new(BridgeFileSystem(Arc::new(NativeFileSystem {}))),
Arc::new(BridgeFileSystem(Arc::new(NativeFileSystem::new(false)))),
),
(
get_memory_path("test_dev_memory"),
Expand Down
2 changes: 1 addition & 1 deletion crates/rspack_storage/tests/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ mod test_storage_error {
let cases = [
(
get_native_path("test_error_native"),
Arc::new(BridgeFileSystem(Arc::new(NativeFileSystem {}))),
Arc::new(BridgeFileSystem(Arc::new(NativeFileSystem::new(false)))),
),
(
get_memory_path("test_error_memory"),
Expand Down
2 changes: 1 addition & 1 deletion crates/rspack_storage/tests/expire.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ mod test_storage_expire {
let cases = [
(
get_native_path("test_expire_native"),
Arc::new(BridgeFileSystem(Arc::new(NativeFileSystem {}))),
Arc::new(BridgeFileSystem(Arc::new(NativeFileSystem::new(false)))),
),
(
get_memory_path("test_expire_memory"),
Expand Down
4 changes: 2 additions & 2 deletions crates/rspack_storage/tests/lock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ mod test_storage_lock {
let cases = [
(
get_native_path("test_lock_native"),
Arc::new(BridgeFileSystem(Arc::new(NativeFileSystem {}))),
Arc::new(BridgeFileSystem(Arc::new(NativeFileSystem::new(false)))),
),
(
get_memory_path("test_lock_memory"),
Expand Down Expand Up @@ -224,7 +224,7 @@ mod test_storage_lock {
let cases = [
(
get_native_path("test_lock_fail_native"),
Arc::new(BridgeFileSystem(Arc::new(NativeFileSystem {}))),
Arc::new(BridgeFileSystem(Arc::new(NativeFileSystem::new(false)))),
),
(
get_memory_path("test_lock_fail_memory"),
Expand Down
2 changes: 1 addition & 1 deletion crates/rspack_storage/tests/multi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ mod test_storage_multi {
let cases = [
(
get_native_path("test_multi_native"),
Arc::new(BridgeFileSystem(Arc::new(NativeFileSystem {}))),
Arc::new(BridgeFileSystem(Arc::new(NativeFileSystem::new(false)))),
),
(
get_memory_path("test_multi_memory"),
Expand Down
2 changes: 1 addition & 1 deletion crates/rspack_storage/tests/release.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ mod test_storage_release {
let cases = [
(
get_native_path("test_release_native"),
Arc::new(BridgeFileSystem(Arc::new(NativeFileSystem {}))),
Arc::new(BridgeFileSystem(Arc::new(NativeFileSystem::new(false)))),
),
(
get_memory_path("test_release_memory"),
Expand Down

0 comments on commit 3eaae99

Please sign in to comment.