mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
fix(cockpit): a place pack retried after a failure counts as failed only if the retry fails
This commit is contained in:
1 parent
e954734379
commit
f6dc89b4fa
3 files changed
+19
-2
No files matched your search
@@ -32,6 +32,12 @@ test('a pack that would not load stays failed until it loads', async () => {
|
||||
await assert.rejects(load(), /offline/);
|
||||
assert.deepEqual(place.placePacksStatus(), { loading: false, failed: true });
|
||||
fail = false;
|
||||
assert.equal(await load(), 1);
|
||||
const retry = load();
|
||||
assert.deepEqual(
|
||||
place.placePacksStatus(),
|
||||
{ loading: true, failed: false },
|
||||
'a retry is not a failure until it fails',
|
||||
);
|
||||
assert.equal(await retry, 1);
|
||||
assert.deepEqual(place.placePacksStatus(), { loading: false, failed: false });
|
||||
});
|
||||
Reference in new issue
Block a user