Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

test(lending): wait up to two minutes for a lent computer's first command on a fresh Windows runner (#4046)

Milind Soni81ac1c45c460
diff --git a/electron/cloud-lending.node-test.mjs b/electron/cloud-lending.node-test.mjs
index c9d0b67394..f868c58a46 100644
--- a/electron/cloud-lending.node-test.mjs
+++ b/electron/cloud-lending.node-test.mjs
@@ -140,8 +140,8 @@ test("the terminal is lent only when asked for with exactly true: the bots can t
await connected(sharing, 2, home);
assert.equal(home.connects.at(-1).terminal, true);
home.push({ action: "run_command", command: "echo fixture-terminal" });
- // On Windows a command starts two PowerShells, which on a fresh CI runner can take longer than the default wait.
- await until(() => home.results.length === 1, "the command result", 30_000);
+ // On Windows a command starts two PowerShells, whose first start on a fresh CI runner has taken over 30 seconds.
+ await until(() => home.results.length === 1, "the command result", 120_000);
assert.notEqual(home.results[0].isError, true);
assert.match(home.results[0].content[0].text, /fixture-terminal/);
assert.deepEqual(sharing.activity(env.id).map(entry => [entry.action, entry.ok]), [["run_command", true]]);