Align decoder startup deadlines and deploy resilient 7.0.8
This commit is contained in:
+4
-1
@@ -76,7 +76,10 @@ const flush = async () => { for (let i = 0; i < 8; i++) await Promise.resolve();
|
||||
await flush(); assert.equal(stops, 1); assert.equal(returned, 1); assert.equal(elements.length, 0);
|
||||
click(); await flush(); assert.equal(starts, 2);
|
||||
pending[0](); await flush(); assert.equal(stops, 1, 'late old completion must not stop the new channel');
|
||||
clock = 25001; interval(); await flush();
|
||||
clock = 35000; interval(); await flush();
|
||||
assert.equal(stops, 1, 'pending startup must survive 35 seconds');
|
||||
assert.equal(returned, 1); assert.equal(elements.length, 1, 'cancel control remains available during slow startup');
|
||||
clock = 45001; interval(); await flush();
|
||||
assert.equal(stops, 2); assert.equal(returned, 2); assert.equal(elements.length, 0);
|
||||
pending[1](); await flush();
|
||||
console.log('PASS default channels, explicit programmes, one start, native OSD, Escape, late completion and startup timeout');
|
||||
|
||||
Reference in New Issue
Block a user