Skip to content

Commit fec5926

Browse files
fix
1 parent 04658e1 commit fec5926

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

tests/component-tests/letterQueue-tests/queue-operations.spec.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
import { logger } from "tests/helpers/pino-logger";
88
import { sendSnsBatchEvent, sendSnsEvent } from "tests/helpers/send-sns-event";
99
import {
10-
pollUpsertLetterLogForError,
10+
pollUpsertLetterLogForWarning,
1111
supplierIdFromSupplierAllocatorLog,
1212
} from "tests/helpers/aws-cloudwatch-helper";
1313
import getRestApiGatewayBaseUrl from "tests/helpers/aws-gateway-helper";
@@ -106,10 +106,7 @@ test.describe("Letter Queue Tests", () => {
106106
expect(letterExists).toBe(true);
107107
expect(itemCount).toBe(1);
108108

109-
await pollUpsertLetterLogForError(
110-
`Letter with id ${letterId} already exists for supplier ${supplierId}"`,
111-
letterId,
112-
);
109+
await pollUpsertLetterLogForWarning("Letter already exists", letterId);
113110
});
114111

115112
test("Verify if VisibilityTimeStamp is updated when Get /letters endpoint is called and subsequent calls returns no data until VisibilityTimeStamp is reached", async ({

0 commit comments

Comments
 (0)