mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-17 16:52:20 +00:00
A failed fallback is not tried again, and focus stays in the credits list as it redraws
This commit is contained in:
1 parent
e440f3dddb
commit
df8728d0ad
4 files changed
+49
-5
No files matched your search
@@ -271,6 +271,14 @@ test('a stack kept after a failed switch and a failed recovery still falls back
|
||||
for (const listener of [...tileErrors]) listener({});
|
||||
for (let i = 0; i < 20; i++) await new Promise((r) => setTimeout(r, 0));
|
||||
assert.ok(osmTries > tries, 'its tile failures still try its fallback');
|
||||
// That fallback failed too: the next failures do not try it again.
|
||||
const retried = osmTries;
|
||||
for (let n = 0; n < 3; n++) {
|
||||
for (const listener of [...tileErrors]) listener({});
|
||||
for (const listener of [...tileErrors]) listener({});
|
||||
for (let i = 0; i < 20; i++) await new Promise((r) => setTimeout(r, 0));
|
||||
}
|
||||
assert.equal(osmTries, retried, 'no retry storm');
|
||||
} finally {
|
||||
console.warn = warn;
|
||||
controller.destroy();
|
||||
|
||||
Reference in new issue
Block a user