From 55dbc3c83bb82743533ddfca753e20215e51e6a2 Mon Sep 17 00:00:00 2001 From: Alexey Zorkaltsev Date: Thu, 27 Jun 2024 18:14:24 +0300 Subject: [PATCH] chore: wip --- src/__tests__/e2e/topic/topic-service.test.ts | 50 ------------------- 1 file changed, 50 deletions(-) delete mode 100644 src/__tests__/e2e/topic/topic-service.test.ts diff --git a/src/__tests__/e2e/topic/topic-service.test.ts b/src/__tests__/e2e/topic/topic-service.test.ts deleted file mode 100644 index f11ab130..00000000 --- a/src/__tests__/e2e/topic/topic-service.test.ts +++ /dev/null @@ -1,50 +0,0 @@ -import DiscoveryService from "../../../discovery/discovery-service"; -import {ENDPOINT_DISCOVERY_PERIOD} from "../../../constants"; -import {AnonymousAuthService} from "../../../credentials/anonymous-auth-service"; -import {getDefaultLogger} from "../../../logger/get-default-logger"; -import {InternalTopicService} from "../../../topic"; - -const DATABASE = '/local'; -const ENDPOINT = 'grpc://localhost:2136'; - -describe('Query.execute()', () => { - - let discoveryService: DiscoveryService; - let topicService: InternalTopicService; - - beforeEach(async () => { - await testOnOneSessionWithoutDriver(); - }); - - afterEach(async () => { - discoveryService.destroy(); - await topicService.destroy(); - }); - - it('write: simple', async () => { - - }); - - it('read: simple', async () => { - - }); - - async function testOnOneSessionWithoutDriver() { - const logger = getDefaultLogger(); - const authService = new AnonymousAuthService(); - discoveryService = new DiscoveryService({ - endpoint: ENDPOINT, - database: DATABASE, - authService, - discoveryPeriod: ENDPOINT_DISCOVERY_PERIOD, - logger, - }); - await discoveryService.ready(ENDPOINT_DISCOVERY_PERIOD); - topicService = new InternalTopicService( - await discoveryService.getEndpoint(), // TODO: Should be one per endpoint - DATABASE, - authService, - logger, - ); - } -});