fusionSuite / FusionSuite

Open and follow issues about the project (frontend, backend, website and documentation)
5 stars 0 forks source link

Fix the REST test failing randomly (`Endpoint /v1/items/type/2 (GET all)`) #54

Closed marien-probesys closed 2 years ago

marien-probesys commented 2 years ago

A test is failing randomly on the CI, which is quite annoying. The message is (cf. https://github.com/fusionSuite/backend/runs/7632516776):

   1) Endpoint /v1/items/type/2 (GET all)
       Get the items of the type:
     Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/runner/work/backend/backend/tests/RESTAPI/items/2_type-items-GET.js)
      at listOnTimeout (node:internal/timers:559:17)
      at processTimers (node:internal/timers:502:7)

Note that it may have been fixed in https://github.com/fusionSuite/backend/pull/15

ddurieux commented 2 years ago

Defines from 2000 to 5000 ms the timout