mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-16 03:31:10 +00:00
test: harden shared-worker runtime setup
This commit is contained in:
@@ -294,10 +294,13 @@ describe("command queue", () => {
|
||||
const blocker2 = new Promise<void>((r) => {
|
||||
resolve2 = r;
|
||||
});
|
||||
const firstStarted = createDeferred();
|
||||
|
||||
const first = enqueueCommandInLane(lane, async () => {
|
||||
firstStarted.resolve();
|
||||
await blocker1;
|
||||
});
|
||||
await firstStarted.promise;
|
||||
const drainPromise = waitForActiveTasks(2000);
|
||||
|
||||
// Starts after waitForActiveTasks snapshot and should not block drain completion.
|
||||
|
||||
Reference in New Issue
Block a user