Skip to content

Commit f4f832d

Browse files
committed
test(rust): isolate nightly selector fixtures
1 parent 4bd7f8c commit f4f832d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/helpers/validation-rust-fixtures.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,12 @@ export function writeFakeRustToolchain(bin, options = {}) {
177177
join(bin, "rust-code-analysis-cli"),
178178
fakeVersionedToolScript("rust-code-analysis-cli 0.0.25", options.rustCodeAnalysis)
179179
);
180+
const env = { ...process.env };
181+
delete env.OPCORE_RUST_NIGHTLY_TOOLCHAIN;
180182
return {
181183
bin,
182184
env: {
183-
...process.env,
185+
...env,
184186
PATH: bin
185187
}
186188
};

0 commit comments

Comments
 (0)