Skip to content

Commit

Permalink
fix: helia/interop tests dont use gateway blockBrokers
Browse files Browse the repository at this point in the history
  • Loading branch information
SgtPooki committed Oct 10, 2023
1 parent e09d09f commit 9ae76ce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/interop/test/fixtures/create-helia.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { all } from '@libp2p/websockets/filters'
import { MemoryBlockstore } from 'blockstore-core'
import { MemoryDatastore } from 'datastore-core'
import { createHelia, type HeliaInit } from 'helia'
import { BitswapBlockBrokerFactory } from 'helia/block-brokers'
import { createLibp2p } from 'libp2p'
import { identifyService } from 'libp2p/identify'
import type { Helia } from '@helia/interface'
Expand Down Expand Up @@ -38,6 +39,9 @@ export async function createHeliaNode (init?: Partial<HeliaInit>): Promise<Helia

const helia = await createHelia({
libp2p,
blockBrokers: [
BitswapBlockBrokerFactory
],
blockstore,
datastore,
...init
Expand Down
4 changes: 4 additions & 0 deletions packages/interop/test/fixtures/create-helia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { tcp } from '@libp2p/tcp'
import { MemoryBlockstore } from 'blockstore-core'
import { MemoryDatastore } from 'datastore-core'
import { createHelia, type HeliaInit } from 'helia'
import { BitswapBlockBrokerFactory } from 'helia/block-brokers'
import { createLibp2p } from 'libp2p'
import { identifyService } from 'libp2p/identify'
import type { Helia } from '@helia/interface'
Expand Down Expand Up @@ -35,6 +36,9 @@ export async function createHeliaNode (init?: Partial<HeliaInit>): Promise<Helia

const helia = await createHelia({
libp2p,
blockBrokers: [
BitswapBlockBrokerFactory
],
blockstore,
datastore,
...init
Expand Down

0 comments on commit 9ae76ce

Please sign in to comment.