Skip to content

Commit

Permalink
skip test with flake
Browse files Browse the repository at this point in the history
  • Loading branch information
kyscott18 committed Oct 3, 2024
1 parent 1a92dc7 commit 8aa736f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/core/src/sync/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,14 @@ test("getEvents() end block", async (context) => {
await cleanup();
});

// TODO(kyle) This test is skipped because it causes a flake on ci.
// Our test setup is unable to properly mock a multichain environment
// The chain data of the chains in "network" is exactly the same.
// This test will fail when `sources[1]` finishes before `sources[0]`, because
// the `onConflictDoNothing` in `insertBlocks` causes the block with relavant data
// not to be added to the store. This test should be un-skipped when 1) we can mock
// multichain enviroments, and 2) when our sync-store is robust enough to handle
// multiple blocks with the same hash and different chain IDs.
test("getEvents() multichain", async (context) => {
const { cleanup, syncStore } = await setupDatabaseServices(context);
const { networks, sources } = getMultichainNetworksAndSources(context);
Expand Down

0 comments on commit 8aa736f

Please sign in to comment.