Skip to content

Commit d489809

Browse files
test with undefined replication status
1 parent 6dffcd4 commit d489809

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/ctst/steps/replication.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,10 @@ Then('the object replication should eventually {string}', { timeout: 360_000 },
116116
const replicationStatus = parsed.result?.ReplicationStatus;
117117

118118
if ((expectedOutcome === 'succeed' || expectedOutcome === 'fail') &&
119-
(replicationStatus === 'PENDING' || replicationStatus === 'PROCESSING')) {
119+
(replicationStatus === 'PENDING' ||
120+
replicationStatus === 'PROCESSING' ||
121+
replicationStatus === undefined // If replication hasn't started, status is still undefined
122+
)) {
120123
continue;
121124
}
122125

0 commit comments

Comments
 (0)