Holusion / eCorpus

3D Explorer and interface
https://ethesaurus.holusion.com
3 stars 0 forks source link

race condition in test: GET /scenes/:scene/:filename(.*) #44

Open sdumetz opened 1 year ago

sdumetz commented 1 year ago

Log:

 1) GET /scenes/:scene/:filename(.*)
       can abort responses:
     AssertionError: expected promise to be rejected with an error matching /socket hang up/ but it was fulfilled with { Object (_events, _eventsCount, ...) }

  2) GET /scenes/:scene/:filename(.*)
       "after each" hook for "can abort responses":
     Uncaught Error: aborted
      at connResetException (node:internal/errors:720:14)
      at Socket.socketCloseListener (node:_http_client:455:19)
      at Socket.emit (node:events:526:35)
      at TCP.<anonymous> (node:net:337:12)

  3) GET /scenes/:scene/:filename(.*)
       "after each" hook for "can abort responses":
     Error: done() called multiple times in hook <GET /scenes/:scene/:filename(.*) "after each" hook for "can abort responses"> of file /Users/sebastien/repositories/eCorpus/source/server/routes/scenes/get/file.test.ts
sdumetz commented 1 year ago

Seems to happen when TEST=0 is set in particular.

sdumetz commented 5 months ago

Test disabled in 92a1c12f5 but still present