diff --git a/desktop/scripts/desktop-version.test.ts b/desktop/scripts/desktop-version.test.ts index f46653cc84..4bfc2c0ff1 100644 --- a/desktop/scripts/desktop-version.test.ts +++ b/desktop/scripts/desktop-version.test.ts @@ -1,4 +1,4 @@ -import { afterEach, expect, test } from "bun:test"; +import { afterEach, expect, setDefaultTimeout, test } from "bun:test"; import { copyFileSync, mkdirSync, @@ -10,6 +10,13 @@ import { import { tmpdir } from "node:os"; import { join, resolve } from "node:path"; +// Each test builds a real git repository and runs desktop-version.ts in a new Bun process, and the +// hash-ordering test makes commits until one sorts lower, so a test starts tens of git and Bun +// processes. On the Windows runner, where every process start is slow, that passed the 5-second +// default and failed "a later internal build orders after an earlier one" with git's exit code +// null. Nothing here waits on a timer or a network. +setDefaultTimeout(30_000); + const directories: string[] = []; const cargo = '[package]\nname = "openbot-desktop"\nversion = "0.0.10"\n\n[dependencies]\nexample = "0.0.10"\n';