Skip to content

Commit

Permalink
refactor: add empty lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Milena-Czierlinski committed Dec 17, 2024
1 parent d9f50b2 commit d9aaa08
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/runtime/test/transport/messages.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,11 +293,14 @@ describe("Message errors", () => {
peer: client2.address
})
).value;

await sleep(150);

const result = await client1.transport.messages.sendMessage({
recipients: [client2.address],
content: createRequestResult.content
});

expect(result).toBeAnError(
"The Message cannot be sent as the contained Request is already expired. Please create a new Request and try again.",
"error.runtime.messages.cannotSendMessageWithExpiredRequest"
Expand All @@ -310,6 +313,7 @@ describe("Message errors", () => {
consent: "I consent to this RequestItem",
mustBeAccepted: true
};

const expiresAt = CoreDate.utc().add({ milliseconds: 100 }).toString();
const createRequestResult = (
await client1.consumption.outgoingRequests.create({
Expand All @@ -320,6 +324,7 @@ describe("Message errors", () => {
peer: client2.address
})
).value;

const result = await client1.transport.messages.sendMessage({
recipients: [client2.address],
content: createRequestResult.content
Expand Down

0 comments on commit d9aaa08

Please sign in to comment.