test: avoid double cron finish wait
This commit is contained in:
parent
f014b46b56
commit
300fc486a4
1 changed files with 0 additions and 1 deletions
|
|
@ -349,7 +349,6 @@ describe("gateway server cron", () => {
|
||||||
const autoJobId = typeof autoJobIdValue === "string" ? autoJobIdValue : "";
|
const autoJobId = typeof autoJobIdValue === "string" ? autoJobIdValue : "";
|
||||||
expect(autoJobId.length > 0).toBe(true);
|
expect(autoJobId.length > 0).toBe(true);
|
||||||
|
|
||||||
await waitForCronFinished(ws, autoJobId);
|
|
||||||
await waitForCronFinished(ws, autoJobId);
|
await waitForCronFinished(ws, autoJobId);
|
||||||
|
|
||||||
await waitForNonEmptyFile(path.join(dir, "cron", "runs", `${autoJobId}.jsonl`));
|
await waitForNonEmptyFile(path.join(dir, "cron", "runs", `${autoJobId}.jsonl`));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue