Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion desktop/scripts/desktop-version.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { afterEach, expect, test } from "bun:test";
import { afterEach, expect, setDefaultTimeout, test } from "bun:test";
import {
copyFileSync,
mkdirSync,
Expand All @@ -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';
Expand Down
Loading