Skip to content

Commit

Permalink
loosen e2e indexer test
Browse files Browse the repository at this point in the history
  • Loading branch information
holic committed Nov 30, 2023
1 parent 8e57ca8 commit 74611df
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions e2e/packages/sync-test/indexerSync.test.ts
Expand Up @@ -128,18 +128,21 @@ describe("Sync from indexer", async () => {
await waitForInitialSync(page);

const entities = await callPageFunction(page, "getKeys", ["Position"]);
expect(entities).toEqual([
{
x: 1,
y: 1,
zone: "0x6d61703100000000000000000000000000000000000000000000000000000000",
},
{
x: 2,
y: -2,
zone: "0x6d61703100000000000000000000000000000000000000000000000000000000",
},
]);
expect(entities).toEqual(
// TODO: figure out how to make this consistently return the same order? may require https://github.com/latticexyz/mud/issues/1979
expect.arrayContaining([
{
x: 1,
y: 1,
zone: "0x6d61703100000000000000000000000000000000000000000000000000000000",
},
{
x: 2,
y: -2,
zone: "0x6d61703100000000000000000000000000000000000000000000000000000000",
},
])
);

// Should not have thrown errors
asyncErrorHandler.expectNoAsyncErrors();
Expand Down

0 comments on commit 74611df

Please sign in to comment.