160 lines
8.5 KiB
Plaintext
160 lines
8.5 KiB
Plaintext
|
||
RUN v3.1.2 /home/xiaomo/multica_workspaces/hello-af23464d222e/hel-897-cfe565d5b1bd/workdir/baseline-web
|
||
|
||
❯ tests/review878_late_cleanup.test.ts (1 test | 1 failed) 12ms
|
||
× old room disconnect cleanup cannot overwrite a newly opened call 11ms
|
||
→ expected 'off' to be 'listening' // Object.is equality
|
||
❯ tests/voice.test.ts (32 tests | 4 failed) 49ms
|
||
✓ honest switch > reads status only: no room, no microphone 4ms
|
||
✓ honest switch > configured && tts_ok never means "verified": voice:false is not read as connected 1ms
|
||
✓ honest switch > refuses honestly before touching the microphone when the server cannot speak 1ms
|
||
✓ honest switch > an insecure page is told why, without asking for the microphone 0ms
|
||
✓ lifecycle > opens, joins, publishes the microphone, follows her state; ending stops everything 1ms
|
||
✓ lifecycle > permission denied: nothing opened on the server, nothing left running 1ms
|
||
✓ lifecycle > server refusal shows its own words and releases the microphone 0ms
|
||
✓ lifecycle > a failed join releases the microphone and gives the room back 0ms
|
||
✓ lifecycle > ending while the microphone prompt is open: the late microphone is stopped, no room is asked for 2ms
|
||
✓ lifecycle > ending while the room is being opened: the late grant is given back, never joined 3ms
|
||
✓ lifecycle > ending while joining: the join is aborted, a late room is closed, the server room deleted 3ms
|
||
✓ lifecycle > rapid on/off/on: only the last call stays, every earlier microphone and room is released 3ms
|
||
✓ lifecycle > late events from an ended call never bring it back 2ms
|
||
✓ lifecycle > the room dropping on its own (network, server ended it) cleans up and says so 1ms
|
||
✓ lifecycle > microphone permission revoked mid-call ends the call 1ms
|
||
✓ lifecycle > her worker never joining is a failure, not an endless wait 2ms
|
||
✓ lifecycle > offline ends with its own words; unload releases at once and the DELETE survives the page 2ms
|
||
✓ lifecycle > a DELETE that cannot get through (offline) is owed, survives a new page, and is sent once back online 1ms
|
||
✓ lifecycle > an owed room already gone on the server (404) counts as settled 0ms
|
||
✓ lifecycle > never confirms a receipt or posts chat itself: the worker owns both 0ms
|
||
× a late end of an older call > the room dropped, its DELETE (and the settle retry) answering after a new call is up, leaves the new call alone 6ms
|
||
→ expected { phase: 'listening', heard: '', …(3) } to match object { phase: 'off' }
|
||
(4 matching properties omitted from actual)
|
||
× a late end of an older call > the microphone was taken away, its DELETE (and the settle retry) answering after a new call is up, leaves the new call alone 2ms
|
||
→ expected { phase: 'listening', heard: '', …(3) } to match object { phase: 'off' }
|
||
(4 matching properties omitted from actual)
|
||
× a late end of an older call > her worker never joined, the DELETE is slow, and a new call is started before it answers 1ms
|
||
→ expected { phase: 'joining', heard: '', …(3) } to match object { phase: 'off', …(1) }
|
||
(3 matching properties omitted from actual)
|
||
✓ a late end of an older call > a normal end whose DELETE is slow, then a new call, then the old answer arrives 2ms
|
||
× a late end of an older call > starting again while the previous start still waits for the old room to be given back: only the newest call survives 5ms
|
||
→ expected [ Room{ closed: +0, …(3) }, …(1) ] to deeply equal [ Room{ closed: +0, …(3) } ]
|
||
✓ a late end of an older call > a microphone granted late to an older start is stopped without touching the new call 3ms
|
||
✓ subtitles and the two channels > interim is a draft; user_final cancels a text reply and asks for the record; φ is heard but not recorded 0ms
|
||
✓ subtitles and the two channels > without the agent state attribute, subtitles still move the state honestly 0ms
|
||
✓ subtitles and the two channels > typing over her spoken answer silences what is left of it until she is listening again 0ms
|
||
✓ record re-read > adds voice turns once, in id order; leaves reach-outs to the inbox and text turns to the stream 0ms
|
||
✓ record re-read > a pending voice row settles in place (sent or cancelled), never duplicated 0ms
|
||
✓ record re-read > reads newest pages down to what the page holds, bounded 1ms
|
||
|
||
Test Files 2 failed (2)
|
||
Tests 5 failed | 28 passed (33)
|
||
Start at 02:51:41
|
||
Duration 268ms (transform 81ms, setup 0ms, collect 150ms, tests 61ms, environment 0ms, prepare 76ms)
|
||
|
||
|
||
⎯⎯⎯⎯⎯⎯⎯ Failed Tests 5 ⎯⎯⎯⎯⎯⎯⎯
|
||
|
||
FAIL tests/review878_late_cleanup.test.ts > old room disconnect cleanup cannot overwrite a newly opened call
|
||
AssertionError: expected 'off' to be 'listening' // Object.is equality
|
||
|
||
Expected: "listening"
|
||
Received: "off"
|
||
|
||
❯ tests/review878_late_cleanup.test.ts:39:29
|
||
37| await new Promise(resolve => setTimeout(resolve, 0));
|
||
38| expect(controller.active).toBe(true);
|
||
39| expect(view?.phase).toBe('listening');
|
||
| ^
|
||
40| } finally {
|
||
41| releaseOld();
|
||
|
||
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/5]⎯
|
||
|
||
FAIL tests/voice.test.ts > a late end of an older call > the room dropped, its DELETE (and the settle retry) answering after a new call is up, leaves the new call alone
|
||
FAIL tests/voice.test.ts > a late end of an older call > the microphone was taken away, its DELETE (and the settle retry) answering after a new call is up, leaves the new call alone
|
||
AssertionError: expected { phase: 'listening', heard: '', …(3) } to match object { phase: 'off' }
|
||
(4 matching properties omitted from actual)
|
||
|
||
- Expected
|
||
+ Received
|
||
|
||
{
|
||
- "phase": "off",
|
||
+ "phase": "listening",
|
||
}
|
||
|
||
❯ tests/voice.test.ts:274:30
|
||
272| const r = await connected(), slow = hold(r, 's1');
|
||
273| cause(r); await flush();
|
||
274| expect(r.view()).toMatchObject({ phase: 'off' });
|
||
| ^
|
||
275| expect(r.transport.mics[0].stopped).toBeGreaterThan(0); …
|
||
276| expect(r.c.active).toBe(false);
|
||
|
||
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/5]⎯
|
||
|
||
FAIL tests/voice.test.ts > a late end of an older call > her worker never joined, the DELETE is slow, and a new call is started before it answers
|
||
AssertionError: expected { phase: 'joining', heard: '', …(3) } to match object { phase: 'off', …(1) }
|
||
(3 matching properties omitted from actual)
|
||
|
||
- Expected
|
||
+ Received
|
||
|
||
{
|
||
- "notice": "她没有接上这次通话,麦克风已经关闭。文字仍可使用。",
|
||
- "phase": "off",
|
||
+ "notice": "",
|
||
+ "phase": "joining",
|
||
}
|
||
|
||
❯ tests/voice.test.ts:293:26
|
||
291| const r = rig(); await r.c.start(); const slow = hold(r, 's1');
|
||
292| await vi.advanceTimersByTimeAsync(1100);
|
||
293| expect(r.view()).toMatchObject({ phase: 'off', notice: WORDS.n…
|
||
| ^
|
||
294| await reopened(r, 1);
|
||
295| slow.open(); await vi.advanceTimersByTimeAsync(0);
|
||
|
||
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[3/5]⎯
|
||
|
||
FAIL tests/voice.test.ts > a late end of an older call > starting again while the previous start still waits for the old room to be given back: only the newest call survives
|
||
AssertionError: expected [ Room{ closed: +0, …(3) }, …(1) ] to deeply equal [ Room{ closed: +0, …(3) } ]
|
||
|
||
- Expected
|
||
+ Received
|
||
|
||
@@ -14,6 +14,23 @@
|
||
"ended": [Function anonymous],
|
||
"stopped": 0,
|
||
},
|
||
],
|
||
},
|
||
+ Room {
|
||
+ "closed": 0,
|
||
+ "hushed": [],
|
||
+ "on": {
|
||
+ "agentJoined": [Function agentJoined],
|
||
+ "agentState": [Function agentState],
|
||
+ "audioBlocked": [Function audioBlocked],
|
||
+ "dropped": [Function dropped],
|
||
+ "subtitle": [Function subtitle],
|
||
+ },
|
||
+ "published": [
|
||
+ Mic {
|
||
+ "ended": [Function anonymous],
|
||
+ "stopped": 0,
|
||
+ },
|
||
+ ],
|
||
+ },
|
||
]
|
||
|
||
❯ tests/voice.test.ts:316:58
|
||
314| slow.open(); await Promise.all([b, c]); await flush(); // B w…
|
||
315| const last = r.transport.rooms.length - 1;
|
||
316| expect(r.transport.rooms.filter(x => !x.closed)).toEqual([r.tr…
|
||
| ^
|
||
317| expect(r.transport.mics.filter(m => !m.stopped)).toEqual([r.tr…
|
||
318| expect(r.server.open.size).toBe(1);
|
||
|
||
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[4/5]⎯
|
||
|