Page MenuHomePhabricator

Test server never shuts down after 'npm run test:diff', must be manually SIGTERM'd
Closed, ResolvedPublic

Description

When running just the diff tests with npm run test:diff, the server never shuts down. Let's figure out why, because I run this very frequently, and having to continually ctrl-C is annoying.

Event Timeline

Theoretically this is accomplished by adding after(() => server.stop()); in test/diff/diff.js. That's easier to do without side effects if the diff tests run stand-alone.
Otherwise the server stops prematurely, if other tests follow.

Vvjjkkii renamed this task from Test server never shuts down after 'npm run test:diff', must be manually SIGTERM'd to tybaaaaaaa.Jul 1 2018, 1:06 AM
Vvjjkkii raised the priority of this task from Low to High.
Vvjjkkii updated the task description. (Show Details)
Vvjjkkii removed a subscriber: Aklapper.
CommunityTechBot renamed this task from tybaaaaaaa to Test server never shuts down after 'npm run test:diff', must be manually SIGTERM'd .Jul 2 2018, 8:43 AM
CommunityTechBot lowered the priority of this task from High to Low.
CommunityTechBot updated the task description. (Show Details)
CommunityTechBot added a subscriber: Aklapper.

Change 443868 had a related patch set uploaded (by Mholloway; owner: Mholloway):
[mediawiki/services/mobileapps@master] Use old mocha exit behavior for test:diff

https://gerrit.wikimedia.org/r/443868

Change 443868 merged by jenkins-bot:
[mediawiki/services/mobileapps@master] Use old mocha exit behavior for test:diff

https://gerrit.wikimedia.org/r/443868