Skip to content

fix: increase timeout for build indexing test #2606

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

v-stickykeys
Copy link
Contributor

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 v-stickykeys self-assigned this Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant