mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-12-22 16:30:13 +00:00
fix(backend): テスト時は一部のサービスを停止
This commit is contained in:
parent
341c42ebb9
commit
9557579b67
1 changed files with 6 additions and 4 deletions
|
@ -18,10 +18,12 @@ export async function server() {
|
|||
const serverService = app.get(ServerService);
|
||||
await serverService.launch();
|
||||
|
||||
app.get(ChartManagementService).start();
|
||||
app.get(JanitorService).start();
|
||||
app.get(QueueStatsService).start();
|
||||
app.get(ServerStatsService).start();
|
||||
if (process.env.NODE_ENV !== 'test') {
|
||||
app.get(ChartManagementService).start();
|
||||
app.get(JanitorService).start();
|
||||
app.get(QueueStatsService).start();
|
||||
app.get(ServerStatsService).start();
|
||||
}
|
||||
|
||||
return app;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue