mirror of https://github.com/openclaw/openclaw.git
test(perf): remove redundant module reset in system presence version tests
This commit is contained in:
parent
d01e82d54a
commit
82247f09a7
|
|
@ -7,12 +7,8 @@ async function withPresenceModule<T>(
|
|||
): Promise<T> {
|
||||
return withEnvAsync(env, async () => {
|
||||
vi.resetModules();
|
||||
try {
|
||||
const module = await import("./system-presence.js");
|
||||
return await run(module);
|
||||
} finally {
|
||||
vi.resetModules();
|
||||
}
|
||||
const module = await import("./system-presence.js");
|
||||
return await run(module);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue