Skip to content

Commit 10a283b

Browse files
committed
try to fix windows ci failure
1 parent 7e5f226 commit 10a283b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/acceptance/volta_install.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,12 +386,17 @@ fn install_yarn_3_without_node_errors() {
386386

387387
#[test]
388388
fn install_node_with_shadowed_binary() {
389+
#[cfg(windows)]
390+
const SCRIPT_FILENAME: &str = "node.bat";
391+
#[cfg(not(windows))]
392+
const SCRIPT_FILENAME: &str = "node";
393+
389394
let s = sandbox()
390395
.node_available_versions(NODE_VERSION_INFO)
391396
.distro_mocks::<NodeFixture>(&NODE_VERSION_FIXTURES)
392397
.env("VOLTA_LOGLEVEL", "info")
393398
.prepend_exec_dir_to_path()
394-
.executable_file("node", "echo hello world")
399+
.executable_file(SCRIPT_FILENAME, "echo hello world")
395400
.build();
396401

397402
assert_that!(

0 commit comments

Comments
 (0)