Skip to content

Commit

Permalink
Log drctl status on error
Browse files Browse the repository at this point in the history
Issue: ZENKO-4899
  • Loading branch information
francoisferrand committed Oct 21, 2024
1 parent 5e7b509 commit 43d2ef4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/ctst/steps/pra.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,12 @@ async function waitForPhase(
timeout = 130000,
): Promise<boolean> {
const start = Date.now();
let currentStatus;

while (Date.now() - start < timeout) {
let phase;

const currentStatus = await world.zenkoDrCtl?.status({
currentStatus = await world.zenkoDrCtl?.status({
sinkZenkoNamespace: 'default',
sinkZenkoInstance: 'end2end-pra',
sinkZenkoDrInstance: 'end2end-pra-sink',
Expand Down Expand Up @@ -164,6 +165,12 @@ async function waitForPhase(
await Utils.sleep(1000);
}

world.logger.error('Timeout waiting for phase', {
target,
state,
currentStatus,
});

return false;
}

Expand Down

0 comments on commit 43d2ef4

Please sign in to comment.