Skip to content

Commit 880c115

Browse files
committed
fix(tests): prevent changeset race condition in parallel tests
1 parent 692921d commit 880c115

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/e2e/delete-stale-changesets.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ exports.deleteStaleChangesets = async (client, stackName) => {
1212
if (
1313
changeset.Status === "FAILED" &&
1414
changeset.StatusReason ===
15-
`The submitted information didn't contain changes. Submit different information to create a change set.`
15+
`The submitted information didn't contain changes. Submit different information to create a change set.` &&
16+
changeset.creationDate < new Date(Date.now() - 5 * 60 * 1000)
1617
) {
1718
console.log("Deleting stale changeset", changeset.ChangeSetId);
1819
await new Promise((r) => setTimeout(r, 200));

0 commit comments

Comments
 (0)