Skip to content
Snippets Groups Projects
Commit 5c54e120 authored by syuilo's avatar syuilo
Browse files

fix(test): ジョブキューをテストが終わったら停止するように

Fix #10802 ?
parent b16d7cc6
No related branches found
No related tags found
No related merge requests found
......@@ -34,4 +34,6 @@ export async function jobQueue() {
jobQueue.get(QueueProcessorService).start();
jobQueue.get(ChartManagementService).start();
return jobQueue;
}
......@@ -10,6 +10,7 @@ import type { INestApplicationContext } from '@nestjs/common';
describe('Account Move', () => {
let app: INestApplicationContext;
let jq: INestApplicationContext;
let url: URL;
let root: any;
......@@ -24,7 +25,7 @@ describe('Account Move', () => {
beforeAll(async () => {
app = await startServer();
await jobQueue();
jq = await jobQueue();
const config = loadConfig();
url = new URL(config.url);
const connection = await initTestDb(false);
......@@ -39,7 +40,7 @@ describe('Account Move', () => {
}, 1000 * 60 * 2);
afterAll(async () => {
await app.close();
await Promise.all([app.close(), jq.close()]);
});
describe('Create Alias', () => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment