Skip to content

Commit

Permalink
increase test timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
yvesfracari committed Jul 16, 2024
1 parent 86e0f24 commit 73eac9a
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/lib/__tests__/oracleRouter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ describe("OracleRouter", () => {
const oracles = await mainnetRouter.findRoute();

expect(oracles.tokenSellOracle.toLowerCase()).toEqual(
"0x2f2c0C1727Ce8C429A237DDFBBb87357893fBD5D".toLowerCase(),
"0x2f2c0C1727Ce8C429A237DDFBBb87357893fBD5D".toLowerCase()
);
expect(oracles.tokenBuyOracle.toLowerCase()).toEqual(
"0xbba12740DE905707251525477bAD74985DeC46D2".toLowerCase(),
"0xbba12740DE905707251525477bAD74985DeC46D2".toLowerCase()
);
}, 15000);
}, 900000);
it("should raise error for gnosis tokens", async () => {
const mainnetRouter = new mainnetRouterFactory({
chainId: 1,
Expand All @@ -68,9 +68,9 @@ describe("OracleRouter", () => {
});

await expect(mainnetRouter.findRoute()).rejects.toThrow(
"No matching oracles found",
"No matching oracles found"
);
}, 15000);
}, 900000);
it("should find WETH USD oracle", async () => {
const mainnetRouter = new mainnetRouterFactory({
chainId: 1,
Expand All @@ -80,7 +80,7 @@ describe("OracleRouter", () => {

const wethOracles = await mainnetRouter.findSellOracle();
expect(typeof wethOracles.USD).toBe(`string`);
}, 15000);
}, 900000);
});
describe("GnosisRouter", () => {
const gnosisRouterFactory = CHAINS_ORACLE_ROUTER_FACTORY[100];
Expand Down Expand Up @@ -110,10 +110,10 @@ describe("OracleRouter", () => {
const oracles = await gnosisRouter.findRoute();

expect(oracles.tokenSellOracle.toLowerCase()).toEqual(
"0x1b723c855f7d2c2785f99486973271355e782d77".toLowerCase(),
"0x1b723c855f7d2c2785f99486973271355e782d77".toLowerCase()
);
expect(oracles.tokenBuyOracle.toLowerCase()).toEqual(
"0xed322a5ac55bae091190dff9066760b86751947b".toLowerCase(),
"0xed322a5ac55bae091190dff9066760b86751947b".toLowerCase()
);
});
it("should find WETH USD oracle", async () => {
Expand All @@ -140,10 +140,10 @@ describe("OracleRouter", () => {
const oracles = await sepoliaRouter.findRoute();

expect(oracles.tokenBuyOracle.toLowerCase()).toEqual(
"0xEd2D417d759b1E77fe6A8920C79AE4CE6D6930F7".toLowerCase(),
"0xEd2D417d759b1E77fe6A8920C79AE4CE6D6930F7".toLowerCase()
);
expect(oracles.tokenSellOracle.toLowerCase()).toEqual(
"0x57Cb700070Cb1b0475E2D668FA8E89cF0Dda9509".toLowerCase(),
"0x57Cb700070Cb1b0475E2D668FA8E89cF0Dda9509".toLowerCase()
);
});
});
Expand Down

0 comments on commit 73eac9a

Please sign in to comment.