PhilanthropyDataCommons / service

A project for collecting and serving public information associated with grant applications
GNU Affero General Public License v3.0
8 stars 2 forks source link

Test itermittently timed out #962

Open reefdog opened 6 months ago

reefdog commented 6 months ago

I just had a test fail due to a timeout issue. I'm putting the info here, although I'm not sure if it's actually related. (Running tests again, it succeeded.)

 FAIL  src/database/operations/load/__test__/loadBundle.int.test.ts (5.419 s)
  ● loadBundle › Should return a bundle for the query

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

      27 | });
      28 |
    > 29 | beforeEach(async () => {
         | ^
      30 |  mockJwks.start();
      31 |  await prepareDatabaseForCurrentWorker();
      32 |  await createTestUser();

      at Object.<anonymous> (src/test/integrationSuiteSetup.ts:29:1)

Originally posted by @reefdog in https://github.com/PhilanthropyDataCommons/service/issues/610#issuecomment-2077632328

slifty commented 6 months ago

I've noticed this happen a few times as well.

It might be related to #910 somehow.

reefdog commented 6 months ago

Ah okay I'll post about it in there too then. :pleased: