Skip to content

Commit

Permalink
Fix tests failing
Browse files Browse the repository at this point in the history
  • Loading branch information
stwiname committed Oct 1, 2021
1 parent 17fdcbd commit b464ddc
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/node/src/indexer/indexer.manager.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,15 +159,21 @@ function createIndexerManager(project: SubqueryProject): IndexerManager {
}

describe('IndexerManager', () => {
let indexerManager: IndexerManager;

afterEach(() => {
(indexerManager as any).fetchService.onApplicationShutdown();
});

it('should be able to start the manager (v0.0.1)', async () => {
const indexerManager = createIndexerManager(testSubqueryProjectV0_0_1());
indexerManager = createIndexerManager(testSubqueryProjectV0_0_1());
await expect(indexerManager.start()).resolves.toBe(undefined);

expect(Object.keys((indexerManager as any).vms).length).toBe(1);
});

it('should be able to start the manager (v0.2.0)', async () => {
const indexerManager = createIndexerManager(testSubqueryProject());
indexerManager = createIndexerManager(testSubqueryProject());
await expect(indexerManager.start()).resolves.toBe(undefined);

expect(Object.keys((indexerManager as any).vms).length).toBe(1);
Expand Down

0 comments on commit b464ddc

Please sign in to comment.