mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
fix(test): wait for managed desktop linger teardown (#122776)
This commit is contained in:
@@ -320,9 +320,6 @@ describe("managed Linux desktop", () => {
|
||||
});
|
||||
expect(observer).toBeDefined();
|
||||
observer?.release();
|
||||
await new Promise<void>((resolve) => {
|
||||
setTimeout(resolve, 10);
|
||||
});
|
||||
expect(desktop.status()).toEqual({ state: "not-started" });
|
||||
await vi.waitFor(() => expect(desktop.status()).toEqual({ state: "not-started" }));
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user