test: remove double uninit of db

This commit is contained in:
Girish Ramakrishnan
2025-06-19 10:17:29 +02:00
parent 84111996b4
commit 227da8dce4
3 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -128,7 +128,8 @@ async function getCpuMetrics() {
}
async function sendToGraphite() {
debug('sendStatsToGraphite: collecting stats');
// debug('sendStatsToGraphite: collecting stats');
const graphiteMetrics = [];
const memoryMetrics = await getMemoryMetrics();
-1
View File
@@ -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');
+2
View File
@@ -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(':');