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, - ); - } -});