Skip to content

Commit

Permalink
fix: provider destroy after test
Browse files Browse the repository at this point in the history
  • Loading branch information
sifnoc committed Jan 11, 2023
1 parent ab3ee81 commit 4799c1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 1 addition & 4 deletions packages/cli/tests/unit/coordinator/configurator.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,11 @@ describe('configurator', () => {
})

it('with websocket provider', async () => {
const localContext = {
networkStatus: NetworkStatus.STOPPED,
}
const wsProviderUrl = 'ws://localhost:8545'
option.base.provider = wsProviderUrl

const connection = new ConnectWeb3(option)
const ret = await connection.run(localContext)
const ret = await connection.run(context)

let wsProvider = ret.context.provider as WebSocketProvider
expect(wsProvider.connection.url).toEqual(wsProviderUrl)
Expand Down
1 change: 1 addition & 0 deletions packages/cli/tests/unit/wallet/configurator.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ describe('configurator', () => {

let wsProvider = ret.context.provider as WebSocketProvider
expect(wsProvider.connection.url).toEqual(wsProviderUrl)
await wsProvider.destroy()
})
})

Expand Down

0 comments on commit 4799c1e

Please sign in to comment.