이지선다: 퀴즈를 아직 안 고른 방이 서버 노래 DB 곡 수(906곡·30문제)를 보이던 것 — 이지선다는 퀴즈 곡만 세어 0곡으로 보임

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-10-23 21:05:46 +09:00
parent 666c236a8e
commit 30c3fab893
3 changed files with 6 additions and 3 deletions

View File

@@ -69,7 +69,9 @@ test('quiz kinds: picking an 이지선다 퀴즈 makes the room 이지선다; an
const { cls } = await room(sa, []);
const host = cls[0]!;
host.send({ t: 'config', patch: { mode: 'duel' } });
await host.waitFor((m) => m.t === 'room' && m.room.config.mode === 'duel');
const none = (await host.waitFor((m) => m.t === 'room' && m.room.config.mode === 'duel')) as Msg<'room'>;
// no 이지선다 퀴즈 yet: no songs (not the server DB pool)
expect(none.room.pool).toEqual({ playable: 0, total: 0 });
host.send({ t: 'start' });
await host.waitFor((m) => m.t === 'error' && m.message.includes('이지선다 퀴즈를 골라'));
host.send({ t: 'config', patch: { quizId: duelId } });