|
@@ -6,10 +6,10 @@ import http from 'http';
|
|
|
|
|
|
const tapetest = _test(tape);
|
|
const tapetest = _test(tape);
|
|
|
|
|
|
-tapetest('service', async function testService(t) {
|
|
|
|
- const server = fork('build/service.js'),
|
|
|
|
- connstring = 'http://localhost:8080';
|
|
|
|
|
|
+const server = fork('build/service.js'),
|
|
|
|
+ connstring = 'http://localhost:8728';
|
|
|
|
|
|
|
|
+tapetest('service', async function testService(assert) {
|
|
try {
|
|
try {
|
|
await waitPro();
|
|
await waitPro();
|
|
const data = await requestPro(connstring + '/');
|
|
const data = await requestPro(connstring + '/');
|
|
@@ -17,11 +17,14 @@ tapetest('service', async function testService(t) {
|
|
}
|
|
}
|
|
catch(e) {
|
|
catch(e) {
|
|
console.log('error somewhere', e);
|
|
console.log('error somewhere', e);
|
|
- t.fail('error somewhere');
|
|
|
|
|
|
+ assert.fail('error somewhere');
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ assert.end();
|
|
|
|
+});
|
|
|
|
+
|
|
|
|
+tapetest.onFinish(async function cleanup() {
|
|
server.kill();
|
|
server.kill();
|
|
- t.end();
|
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|