js-ceramic icon indicating copy to clipboard operation
js-ceramic copied to clipboard

fix: increase timeout for build indexing test

Open v-stickykeys opened this issue 3 years ago • 0 comments

The build-indexing test times out when running the tests locally. This pr extends the test timeout which allows it to pass.

Repro

Running

cd js-ceramic
npm install
npm run build
npm run test

Produces

Summary of all failing tests
 FAIL  src/indexing/__tests__/build-indexing.test.ts (6.255 s)
  ● build for postgres connection string

    thrown: "Exceeded timeout of 5000 ms for a test.
    Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

      50 | })
      51 |
    > 52 | test('build for postgres connection string', async () => {
         | ^
      53 |   const { databaseURL, kill } = await getDatabase()
      54 |   const indexingApi = buildIndexing(
      55 |     {

      at test (src/indexing/__tests__/build-indexing.test.ts:52:1)

v-stickykeys avatar Dec 12 '22 20:12 v-stickykeys