style(test): align retry assertions

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Lourenco Castro 2026-09-11 14:24:17 +02:00
parent 17223a9b25
commit 236d43bb5a
1 changed files with 13 additions and 13 deletions

View File

@ -3425,19 +3425,19 @@ describeEmbeddedPostgres("heartbeat comment wake batching", () => {
),
);
expect(missingCommentRetries).toHaveLength(1);
expect(missingCommentRetries[0]?.payload).toMatchObject({
retryReason: "missing_issue_comment",
});
for (const key of [
"modelProfile",
"paperclipModelProfile",
"recoveryIntent",
"allowDeliverableWork",
"allowDocumentUpdates",
"resumeRequiresNormalModel",
]) {
expect(missingCommentRetries[0]?.payload).not.toHaveProperty(key);
}
expect(missingCommentRetries[0]?.payload).toMatchObject({
retryReason: "missing_issue_comment",
});
for (const key of [
"modelProfile",
"paperclipModelProfile",
"recoveryIntent",
"allowDeliverableWork",
"allowDocumentUpdates",
"resumeRequiresNormalModel",
]) {
expect(missingCommentRetries[0]?.payload).not.toHaveProperty(key);
}
} finally {
gateway.releaseFirstWait();
await gateway.close();