Skip to content

Commit 30d3c17

Browse files
committed
fix: await indexer stop in tests after blocks
1 parent b476a1e commit 30d3c17

9 files changed

Lines changed: 9 additions & 9 deletions

src/test/integration/algorithmsAccess.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,6 @@ describe('Trusted algorithms Flow', () => {
495495
})
496496
after(async () => {
497497
await tearDownEnvironment(previousConfiguration)
498-
indexer.stopAllChainIndexers()
498+
await indexer.stopAllChainIndexers()
499499
})
500500
})

src/test/integration/configDatabase.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ describe('Config Database', () => {
106106
assert(version.value === updatedVersion, `Version should be ${updatedVersion}`)
107107
})
108108
after(async () => {
109-
oceanIndexer.stopAllChainIndexers()
109+
await oceanIndexer.stopAllChainIndexers()
110110
await tearDownEnvironment(previousConfiguration)
111111
})
112112
})

src/test/integration/credentials.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,6 @@ describe('[Credentials Flow] - Should run a complete node flow.', () => {
611611

612612
after(async () => {
613613
await tearDownEnvironment(previousConfiguration)
614-
oceanNode.getIndexer().stopAllChainIndexers()
614+
await oceanNode.getIndexer().stopAllChainIndexers()
615615
})
616616
})

src/test/integration/download.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,6 @@ describe('[Download Flow] - Should run a complete node flow.', () => {
318318
})
319319
after(async () => {
320320
await tearDownEnvironment(previousConfiguration)
321-
indexer.stopAllChainIndexers()
321+
await indexer.stopAllChainIndexers()
322322
})
323323
})

src/test/integration/encryptDecryptDDO.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,6 @@ describe('Should encrypt and decrypt DDO', () => {
416416

417417
after(async () => {
418418
await tearDownEnvironment(previousConfiguration)
419-
indexer.stopAllChainIndexers()
419+
await indexer.stopAllChainIndexers()
420420
})
421421
})

src/test/integration/indexer.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,6 +673,6 @@ describe('Indexer stores a new metadata events and orders.', () => {
673673

674674
after(async () => {
675675
await tearDownEnvironment(previousConfiguration)
676-
indexer.stopAllChainIndexers()
676+
await indexer.stopAllChainIndexers()
677677
})
678678
})

src/test/integration/operationsDashboard.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,6 @@ describe('Should test admin operations', () => {
462462
after(async () => {
463463
await tearDownEnvironment(previousConfiguration)
464464
INDEXER_CRAWLING_EVENT_EMITTER.removeAllListeners()
465-
indexer.stopAllChainIndexers()
465+
await indexer.stopAllChainIndexers()
466466
})
467467
})

src/test/integration/pricing.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,6 @@ describe('Publish pricing scehmas and assert ddo stats - FRE & Dispenser', () =>
376376
})
377377
after(async () => {
378378
await tearDownEnvironment(previousConfiguration)
379-
indexer.stopAllChainIndexers()
379+
await indexer.stopAllChainIndexers()
380380
})
381381
})

src/test/integration/transactionValidation.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,6 @@ describe('validateOrderTransaction Function with Orders', () => {
239239
})
240240
after(async () => {
241241
await tearDownEnvironment(previousConfiguration)
242-
indexer.stopAllChainIndexers()
242+
await indexer.stopAllChainIndexers()
243243
})
244244
})

0 commit comments

Comments
 (0)