Skip to content

Commit

Permalink
Fix test again
Browse files Browse the repository at this point in the history
  • Loading branch information
tybook committed Oct 16, 2024
1 parent 2fbbf1e commit 7d66f04
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/shuttle/src/shuttle.integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -703,8 +703,8 @@ describe("shuttle", () => {
);
},
getAllCastMessagesByFid: async (_request: FidRequest, _metadata: Metadata, _options: Partial<CallOptions>) => {
// force wait for 2 seconds to trigger failure
await new Promise((resolve) => setTimeout(resolve, 500));
// force wait longer than MessageReconciliation's configured timeout to trigger failure
await new Promise((resolve) => setTimeout(resolve, 550));
return ok(
MessagesResponse.create({
messages: [
Expand Down Expand Up @@ -743,8 +743,8 @@ describe("shuttle", () => {
_metadata: Metadata,
_options: Partial<CallOptions>,
) => {
// force wait for 2 seconds to trigger failure
await new Promise((resolve) => setTimeout(resolve, 500));
// force wait longer than MessageReconciliation's configured timeout to trigger failure
await new Promise((resolve) => setTimeout(resolve, 550));
return ok(
MessagesResponse.create({
messages: [],
Expand Down Expand Up @@ -791,7 +791,7 @@ describe("shuttle", () => {
startTimestamp,
),
).rejects.toThrow();
}, 1000); // Need to make sure this is long enough to handle the timeout termination
}, 5000); // Need to make sure this is long enough to handle the timeout termination

test("marks messages as pruned", async () => {
const addMessage = await Factories.ReactionAddMessage.create({}, { transient: { signer } });
Expand Down

0 comments on commit 7d66f04

Please sign in to comment.