feat: allow three cumulative selection timeouts per match
This commit is contained in:
@@ -34,7 +34,7 @@ test('local bot runs countdown, turns, result and persistence without Socket.IO'
|
||||
});
|
||||
test('timeout records a loss once and local leave records forfeit', async () => {
|
||||
const h = harness();
|
||||
try { await h.controller.start(); await h.clock.advance(7000); assert.equal(h.recorded[0].outcome, 'loss'); assert.equal(h.recorded[0].reason, 'timeout'); }
|
||||
try { await h.controller.start(); await h.clock.advance(12000); assert.equal(h.recorded[0].outcome, 'loss'); assert.equal(h.recorded[0].reason, 'timeout'); }
|
||||
finally { h.controller.destroy(); }
|
||||
const other = harness();
|
||||
try { await other.controller.start(); await other.controller.leave(); assert.equal(other.recorded[0].reason, 'forfeit'); assert.equal(other.recorded[0].outcome, 'loss'); }
|
||||
|
||||
Reference in New Issue
Block a user