mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-30 11:53:09 +02:00
parent
b16d7cc6c4
commit
5c54e12099
2 changed files with 5 additions and 2 deletions
|
@ -34,4 +34,6 @@ export async function jobQueue() {
|
||||||
|
|
||||||
jobQueue.get(QueueProcessorService).start();
|
jobQueue.get(QueueProcessorService).start();
|
||||||
jobQueue.get(ChartManagementService).start();
|
jobQueue.get(ChartManagementService).start();
|
||||||
|
|
||||||
|
return jobQueue;
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,6 +10,7 @@ import type { INestApplicationContext } from '@nestjs/common';
|
||||||
|
|
||||||
describe('Account Move', () => {
|
describe('Account Move', () => {
|
||||||
let app: INestApplicationContext;
|
let app: INestApplicationContext;
|
||||||
|
let jq: INestApplicationContext;
|
||||||
let url: URL;
|
let url: URL;
|
||||||
|
|
||||||
let root: any;
|
let root: any;
|
||||||
|
@ -24,7 +25,7 @@ describe('Account Move', () => {
|
||||||
|
|
||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
app = await startServer();
|
app = await startServer();
|
||||||
await jobQueue();
|
jq = await jobQueue();
|
||||||
const config = loadConfig();
|
const config = loadConfig();
|
||||||
url = new URL(config.url);
|
url = new URL(config.url);
|
||||||
const connection = await initTestDb(false);
|
const connection = await initTestDb(false);
|
||||||
|
@ -39,7 +40,7 @@ describe('Account Move', () => {
|
||||||
}, 1000 * 60 * 2);
|
}, 1000 * 60 * 2);
|
||||||
|
|
||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
await app.close();
|
await Promise.all([app.close(), jq.close()]);
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('Create Alias', () => {
|
describe('Create Alias', () => {
|
||||||
|
|
Loading…
Reference in a new issue