Skip to content

Commit d0eb522

Browse files
committed
test(daemon): state the recording test's failure mode in the header
1 parent b097e22 commit d0eb522

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎src/daemon/session-lifecycle/internal/__tests__/session-close-cwd-scoped-resources.test.ts‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,12 @@ beforeEach(resetSessionCloseShutdownMocks);
3535

3636
// An implicitly cwd-scoped session is *named* `default` but *stored* under `cwd:<hash>:default`
3737
// (`SessionRef`). Each durable-capture record lives in the address's directory, so close teardown
38-
// must address every resource by the store address. Each test below fails with
39-
// "<Kind> resource record is missing" if its step goes back to `session.name`.
38+
// must address every resource by the store address. If a step goes back to `session.name`:
39+
// - app_log, audio_probe, perf_capture fail with "<Kind> resource record is missing", because
40+
// the record is read from the bare-name directory, which holds none.
41+
// - recording fails on `finish` not being called for the addressed session, because
42+
// `finishSessionScreenRecording` re-reads the store by name and finishes the decoy stored
43+
// under `default` instead.
4044
const ADDRESS = 'cwd:0f803c4542a46e92:default';
4145
const NAME = 'default';
4246
const IOS_SIM: SessionState['device'] = {

0 commit comments

Comments
 (0)