Compare commits
4 Commits
6eacd79f07
...
f828aec329
Author | SHA1 | Date |
---|---|---|
![]() |
f828aec329 | |
![]() |
3624fd0f53 | |
![]() |
93c4601587 | |
![]() |
f1345ec2ed |
|
@ -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.
|
||||
|
|
|
@ -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"
|
||||
},
|
||||
|
|
|
@ -59,6 +59,7 @@ describe('REST interface for blob data storage', () => {
|
|||
|
||||
after(done => {
|
||||
server.stop();
|
||||
client.destroy();
|
||||
done();
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue