Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

Commit

Permalink
HYP-13: disable mocks that hit timeout in onchain test.
Browse files Browse the repository at this point in the history
  • Loading branch information
n3op2 committed Nov 21, 2023
1 parent 7ce8b7c commit 6811c10
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions test/integration/onchain/chain.test.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
import { describe } from 'mocha'
import { Express } from 'express'
import { expect } from 'chai'

import Indexer from '../../../src/lib/indexer'

import { withIdentitySelfMock } from '../../helpers/mock'
// import { Express } from 'express'
// import Indexer from '../../../src/lib/indexer'
// import { withIdentitySelfMock } from '../../helpers/mock'
// import { withAppAndIndexer } from '../../helpers/chainTest'
import Database from '../../../src/lib/db'
import ChainNode from '../../../src/lib/chainNode'
import { logger } from '../../../src/lib/logger'
import env from '../../../src/env'
import { pollTransactionState } from '../../helpers/poll'
import { withAppAndIndexer } from '../../helpers/chainTest'

describe('on-chain', function () {
this.timeout(120000)
Expand All @@ -22,11 +21,9 @@ describe('on-chain', function () {
logger,
userUri: env.USER_URI,
})
const context: { app: Express; indexer: Indexer } = {} as { app: Express; indexer: Indexer }

withAppAndIndexer(context)

withIdentitySelfMock()
// const context: { app: Express; indexer: Indexer } = {} as { app: Express; indexer: Indexer }
// withAppAndIndexer(context)
// withIdentitySelfMock()

beforeEach(async function () {
await db.delete('transaction', {})
Expand Down

0 comments on commit 6811c10

Please sign in to comment.