backend-common: avoid starting keepalive loop in tests
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/backend-common': patch
|
||||
---
|
||||
|
||||
Avoid starting database keepalive loop in tests.
|
||||
@@ -180,6 +180,7 @@ jsx
|
||||
JWTs
|
||||
Kaewkasi
|
||||
Kaswell
|
||||
keepalive
|
||||
Keyv
|
||||
Knex
|
||||
Koyeb
|
||||
|
||||
@@ -377,7 +377,9 @@ export class DatabaseManager {
|
||||
databaseClientOverrides,
|
||||
deps,
|
||||
);
|
||||
this.startKeepaliveLoop(pluginId, client);
|
||||
if (process.env.NODE_ENV !== 'test') {
|
||||
this.startKeepaliveLoop(pluginId, client);
|
||||
}
|
||||
return client;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user