ci: rely on jest timeout for vaa retry

This commit is contained in:
Evan Gray 2023-10-31 15:39:12 -04:00 committed by Evan Gray
parent b13ec6a9ab
commit 1a378c31f8
3 changed files with 15 additions and 45 deletions

View File

@ -95,9 +95,7 @@ describe("Aptos SDK tests", () => {
sequence!,
{
transport: NodeHttpTransport(),
},
1000,
5
}
);
expect(attestVAA).toBeTruthy();
@ -162,9 +160,7 @@ describe("Aptos SDK tests", () => {
sequence!,
{
transport: NodeHttpTransport(),
},
1000,
5
}
);
expect(transferVAA).toBeTruthy();
@ -230,9 +226,7 @@ describe("Aptos SDK tests", () => {
sequence,
{
transport: NodeHttpTransport(),
},
1000,
5
}
);
expect(attestVAA).toBeTruthy();
@ -336,9 +330,7 @@ describe("Aptos SDK tests", () => {
sequence,
{
transport: NodeHttpTransport(),
},
1000,
5
}
);
expect(transferVAA).toBeTruthy();
@ -415,9 +407,7 @@ describe("Aptos SDK tests", () => {
sequence!,
{
transport: NodeHttpTransport(),
},
1000,
5
}
);
expect(attestVAA).toBeTruthy();
@ -485,9 +475,7 @@ describe("Aptos SDK tests", () => {
sequence!,
{
transport: NodeHttpTransport(),
},
1000,
5
}
);
expect(transferVAA).toBeTruthy();
const { tokenTransferPayload } = parseTokenTransferVaa(transferVAA);

View File

@ -173,9 +173,7 @@ describe("Sui SDK tests", () => {
attestSequence,
{
transport: NodeHttpTransport(),
},
1000,
5
}
);
const slicedAttestVAA = sliceVAASignatures(attestVAA);
console.log(Buffer.from(slicedAttestVAA).toString("hex"));
@ -340,9 +338,7 @@ describe("Sui SDK tests", () => {
ethSequence,
{
transport: NodeHttpTransport(),
},
1000,
5
}
);
const slicedTransferFromEthVAA = sliceVAASignatures(transferFromEthVAA);
expect(slicedTransferFromEthVAA).toBeTruthy();
@ -417,9 +413,7 @@ describe("Sui SDK tests", () => {
sequence,
{
transport: NodeHttpTransport(),
},
1000,
5
}
);
expect(transferFromSuiVAA).toBeTruthy();
@ -499,9 +493,7 @@ describe("Sui SDK tests", () => {
attestSequence,
{
transport: NodeHttpTransport(),
},
1000,
30
}
);
console.log(parseAttestMetaVaa(attestVAA));
expect(attestVAA).toBeTruthy();
@ -561,9 +553,7 @@ describe("Sui SDK tests", () => {
// sequence!,
// {
// transport: NodeHttpTransport(),
// },
// 1000,
// 30
// }
// );
// // Redeem on Ethereum
@ -610,9 +600,7 @@ describe("Sui SDK tests", () => {
// ethSequence,
// {
// transport: NodeHttpTransport(),
// },
// 1000,
// 30
// }
// );
// const slicedVAA = sliceVAASignatures(ethTransferVAA);
@ -671,9 +659,7 @@ describe("Sui SDK tests", () => {
attestSequence,
{
transport: NodeHttpTransport(),
},
1000,
30
}
);
expect(attestVAA).toBeTruthy();
@ -740,9 +726,7 @@ describe("Sui SDK tests", () => {
sequence!,
{
transport: NodeHttpTransport(),
},
1000,
30
}
);
const { tokenTransferPayload } = parseTokenTransferVaa(transferVAA);
expect(tokenTransferPayload.toString()).toBe(payload.toString());

View File

@ -51,9 +51,7 @@ export async function getSignedVAABySequence(
sequence,
{
transport: NodeHttpTransport(), //This should only be needed when running in node.
},
1000, //retryTimeout
1000 //Maximum retry attempts
}
);
return vaaBytes;