mirror of
https://github.com/morluto/rea.git
synced 2026-11-13 18:22:42 +00:00
refactor: remove legacy seams and consolidate resource ownership (#10349)
This commit is contained in:
1 parent
5cddc69c51
commit
bbe2bcc979
301 files changed
+3148
-2804
No files matched your search
@@ -133,10 +133,15 @@ it("shares one in-flight JavaScript worker shutdown between callers", async () =
|
||||
await openCliScope();
|
||||
const first = closeCliJavaScriptResources();
|
||||
const second = closeCliJavaScriptResources();
|
||||
expect(second).toBe(first);
|
||||
let secondSettled = false;
|
||||
void second.then(() => {
|
||||
secondSettled = true;
|
||||
});
|
||||
await Promise.resolve();
|
||||
expect(secondSettled).toBe(false);
|
||||
expect(calls).toBe(1);
|
||||
release();
|
||||
await first;
|
||||
await Promise.all([first, second]);
|
||||
expect(calls).toBe(1);
|
||||
} finally {
|
||||
release();
|
||||
|
||||
Reference in new issue
Block a user