Compare commits

...

4 Commits

Author SHA1 Message Date
bert-e f828aec329 Merge branch 'dependabot/npm_and_yarn/development/7.4/mocha-8.0.1' into tmp/octopus/w/7.9/dependabot/npm_and_yarn/development/7.4/mocha-8.0.1 2021-03-31 00:10:09 +00:00
Jonathan Gramain 3624fd0f53 build(deps-dev): Bump mocha from 2.5.3 to 8.0.1
Destroy the HTTP agent after rest unit tests, since mocha 4+ do not
force exit anymore, it would hang otherwise due to connections not
closed.

Ref: https://boneskull.com/mocha-v4-nears-release/#mochawontforceexit
2021-03-30 17:09:45 -07:00
Jonathan Gramain 93c4601587 Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/development/7.4/mocha-8.0.1' into w/7.9/dependabot/npm_and_yarn/development/7.4/mocha-8.0.1 2021-03-30 15:57:48 -07:00
dependabot[bot] f1345ec2ed build(deps-dev): Bump mocha from 2.5.3 to 8.0.1
Bumps [mocha](https://github.com/mochajs/mocha) from 2.5.3 to 8.0.1.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v2.5.3...v8.0.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-30 15:55:18 -07:00
4 changed files with 738 additions and 115 deletions

View File

@ -88,6 +88,16 @@ class RESTClient {
});
}
/**
* Destroy the HTTP agent, forcing a close of the remaining open
* connections
*
* @return {undefined}
*/
destroy() {
this.httpAgent.destroy();
}
/*
* Create a dedicated logger for RESTClient, from the provided werelogs API
* instance.

View File

@ -46,7 +46,7 @@
"eslint-config-airbnb": "6.2.0",
"eslint-config-scality": "scality/Guidelines#ec33dfb",
"eslint-plugin-react": "^4.3.0",
"mocha": "2.5.3",
"mocha": "8.0.1",
"sinon": "^9.0.2",
"temp": "0.9.1"
},

View File

@ -59,6 +59,7 @@ describe('REST interface for blob data storage', () => {
after(done => {
server.stop();
client.destroy();
done();
});

840
yarn.lock

File diff suppressed because it is too large Load Diff