test: remove double uninit of db
This commit is contained in:
+2
-1
@@ -128,7 +128,8 @@ async function getCpuMetrics() {
|
||||
}
|
||||
|
||||
async function sendToGraphite() {
|
||||
debug('sendStatsToGraphite: collecting stats');
|
||||
// debug('sendStatsToGraphite: collecting stats');
|
||||
|
||||
const graphiteMetrics = [];
|
||||
|
||||
const memoryMetrics = await getMemoryMetrics();
|
||||
|
||||
@@ -179,7 +179,6 @@ async function setup() {
|
||||
|
||||
async function cleanup() {
|
||||
debug('Cleaning up');
|
||||
await database._clear();
|
||||
await server.stop();
|
||||
await oidcServer.stop();
|
||||
debug('Cleaned up');
|
||||
|
||||
@@ -506,6 +506,8 @@ async function rebuildService(id, auditSource) {
|
||||
assert.strictEqual(typeof id, 'string');
|
||||
assert.strictEqual(typeof auditSource, 'object');
|
||||
|
||||
if (constants.TEST && !process.env.TEST_CREATE_INFRA) return;
|
||||
|
||||
// this attempts to recreate the service docker container if they don't exist but platform infra version is unchanged
|
||||
// passing an infra version of 'none' will not attempt to purge existing data
|
||||
const [name, instance] = id.split(':');
|
||||
|
||||
Reference in New Issue
Block a user