diff --git a/app/test/dependency-failures.e2e-spec.ts b/app/test/dependency-failures.e2e-spec.ts index 8632c06..2b8455e 100644 --- a/app/test/dependency-failures.e2e-spec.ts +++ b/app/test/dependency-failures.e2e-spec.ts @@ -593,7 +593,8 @@ describe.skipIf(!enabled)('dependency outages', () => { }), ); await waitForSlot( - (slots) => upSlots(slots).length === 0, + // 'UP 1/2' is still in rotation: wait for DOWN itself. + (slots) => slots.every((slot) => slot.status === 'DOWN'), 'not every slot left rotation', ); expectLbOutage( @@ -683,7 +684,8 @@ describe.skipIf(!enabled)('dependency outages', () => { }), ); await waitForSlot( - (slots) => upSlots(slots).length === 0, + // 'UP 1/2' is still in rotation: wait for DOWN itself. + (slots) => slots.every((slot) => slot.status === 'DOWN'), 'not every slot left rotation', ); expectLbOutage(