Skip to content

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

test: the top-up test's move is recent, so the copy isn't forgotten first

milind-sonie6ee0d1a61bd
diff --git a/electron/clean-workspace.node-test.mjs b/electron/clean-workspace.node-test.mjs
index 62d7d7f3c8..f54bebc973 100644
--- a/electron/clean-workspace.node-test.mjs
+++ b/electron/clean-workspace.node-test.mjs
@@ -171,7 +171,7 @@ const done = (extra = {}) => ({ v: 1, phase: "done", cloud: { origin: CLOUD, acc
const onClean = (w) => w.requests.filter(([folder]) => folder === w.cleanDir);
test("a top-up can't read the clean workspace: it waits, with no hour's penalty, and goes once this computer's own copy answers", async (t) => {
- const w = moved(t, { state: ready(), journal: done() });
+ const w = moved(t, { state: ready(), journal: done({ doneAt: Date.now() }) });
await w.clean.enter();
await w.main.kick();
assert.deepEqual(onClean(w), []);