fix(cockpit): a place pack retried after a failure counts as failed only if the retry fails

This commit is contained in:
Sameh Khamis committed 2026-11-08 19:49:05 -08:00
1 parent e954734379
commit f6dc89b4fa
3 files changed
+19 -2

No files matched your search

+9
View File
@@ -56,4 +56,13 @@ test('a load that lands ends complete; one that fails ends failed', () => {
batch([loading, { loading: false, failed: true }]).terminal,
'error',
);
// A retry after a failure that lands ends complete.
assert.equal(
batch([
{ loading: false, failed: true },
loading,
{ loading: false, failed: false },
]).terminal,
'complete',
);
});