Give the long catch-up and simulation tests a 60 s timeout
CI / check (push) Successful in 8m38s
Details
CI / check (push) Successful in 8m38s
Details
They sometimes passed the 5 s default under coverage on CI now that trips have events. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
936fb9e506
commit
521c2b7655
|
|
@ -1983,3 +1983,4 @@ Implementation decisions not spelled out in `memory-bank/implementation-plan.md`
|
|||
|
||||
- **A job's length depends on the ship**, so the board shows it for the player's fastest crewed ship that could take the job (the permanent checks: hold, range, landing, skills), preferring ships already at the job's origin, since those are the ones that would fly it. Its label says it's game time, and a tooltip says which ship it's for.
|
||||
- **It's the whole trip in game hours** (travel plus loading and takeoff/landing), the figure the Priority window and duty use.
|
||||
- **Long catch-up and simulation tests get 60 s** (`vi.setConfig` in `balance.test.ts`, `catch-up.test.ts`, `fleet-sleep.test.ts`): with events, a week's replay sometimes passed the 5 s default under coverage on CI.
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { content } from "@deadhead/content";
|
||||
import type { SaveDocument } from "@deadhead/schema";
|
||||
import { MS_PER_MINUTE } from "@deadhead/sim";
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { describe, expect, it, vi } from "vitest";
|
||||
import { turnaroundMs } from "../src/game/independent";
|
||||
import { upcomingEvents } from "../src/index";
|
||||
import {
|
||||
|
|
@ -18,6 +18,9 @@ import {
|
|||
type TestApp,
|
||||
} from "./support";
|
||||
|
||||
// Long catch-ups and simulations: slow under coverage on CI.
|
||||
vi.setConfig({ testTimeout: 60_000 });
|
||||
|
||||
const HOUR = 60 * MS_PER_MINUTE;
|
||||
const DAY = 24 * HOUR;
|
||||
const FIRST_LOOK = content.config.independentPilots.firstLookRealMinutes * MS_PER_MINUTE;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { content } from "@deadhead/content";
|
||||
import type { SaveDocument } from "@deadhead/schema";
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { describe, expect, it, vi } from "vitest";
|
||||
import { encodeSave } from "../src/index";
|
||||
import {
|
||||
addPilot,
|
||||
|
|
@ -15,6 +15,9 @@ import {
|
|||
type TestApp,
|
||||
} from "./support";
|
||||
|
||||
// Long catch-ups and simulations: slow under coverage on CI.
|
||||
vi.setConfig({ testTimeout: 60_000 });
|
||||
|
||||
const HOUR = 60 * 60_000;
|
||||
|
||||
describe("fleet sleep in the save (Step 24.1, decisions 0.5.136, 0.5.137)", () => {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,11 @@
|
|||
import { beforeAll, describe, expect, it } from "vitest";
|
||||
import { beforeAll, describe, expect, it, vi } from "vitest";
|
||||
import { simulate, type Milestones, type SimulationResult } from "../balance/simulate";
|
||||
import { content } from "@deadhead/content";
|
||||
import { fuelPriceAt, MS_PER_HOUR, tripFuel } from "../src/index";
|
||||
|
||||
// Long catch-ups and simulations: slow under coverage on CI.
|
||||
vi.setConfig({ testTimeout: 60_000 });
|
||||
|
||||
/**
|
||||
* Balance targets (plan Step 12.1 as amended by CR-001 to CR-013), checked on
|
||||
* the median of several worlds: one world's job luck moves a milestone by tens
|
||||
|
|
|
|||
Loading…
Reference in New Issue