UNPKG

@infect/infect-rda-sample-storage

Version:

INFECT Sample Storage for RDA

40 lines (25 loc) 846 B
import Service from '../index.js'; import section from 'section-tests'; import assert from 'assert'; import log from 'ee-log'; import ServiceManager from '@infect/rda-service-manager'; const host = 'http://localhost:8020'; section('INFECT Sample Storage for RDA', (section) => { let sm; section.setup(async() => { sm = new ServiceManager({ args: '--dev --log-level=error+ --log-module=*'.split(' ') }); await sm.startServices('@infect/rda-service-registry'); }); section.test('Start & stop service', async() => { section.setTimeout(5000); const service = new Service(); await service.load(); await section.wait(200); await service.end(); }); section.destroy(async() => { await sm.stopServices(); }); });