Page MenuHomePhabricator

re-enable a routinely flakey JS integration test
Open, MediumPublic

Description

What/Why:
When running javascript-all-test.js, the particular test 'javascript - debug' keep causing timeouts. This was recently spotted during the service-utils migration, however has been known to occur before. We tried to move around the after() block and also using global hooks to no avail. Because this debugging was blocking for too long than it was worth, we disabled it with hopes to address later during a Fix-it week.

How:

  1. Find out why this is flakey OR find out how to prevent the after() block doesn't get stuck (see parent task)
  2. Re-enable test OR refactor it

Event Timeline

Noting that if we want to try global hooks again, we need to use .mocharc.js as .mocha.opts has been deprecated since V6+ https://github.com/mochajs/mocha/blob/main/example/config/.mocharc.js