Skip to content

Commit eb1b640

Browse files
committed
test(config): contain shell env fallback in config write tests
1 parent ddacb7b commit eb1b640

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/config/io.write-config.test.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,14 @@ describe("config io write", () => {
7474

7575
async function withSuiteHome<T>(fn: (home: string) => Promise<T>): Promise<T> {
7676
const home = await suiteRootTracker.make("case");
77-
return fn(home);
77+
return withEnvAsync(
78+
{
79+
OPENCLAW_DEFER_SHELL_ENV_FALLBACK: undefined,
80+
OPENCLAW_LOAD_SHELL_ENV: undefined,
81+
OPENCLAW_SHELL_ENV_TIMEOUT_MS: undefined,
82+
},
83+
() => fn(home),
84+
);
7885
}
7986

8087
beforeAll(async () => {

0 commit comments

Comments
 (0)