From 3cc24c3faf026ceddadd036a0ce706896175bfcf Mon Sep 17 00:00:00 2001 From: cgeek <cem.moreau@gmail.com> Date: Sat, 30 Jun 2018 15:09:01 +0200 Subject: [PATCH] [fix] broken tests on CLI --- test/integration/misc/cli.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/integration/misc/cli.ts b/test/integration/misc/cli.ts index 8abc8acaf..a4540493b 100644 --- a/test/integration/misc/cli.ts +++ b/test/integration/misc/cli.ts @@ -133,14 +133,14 @@ describe("CLI", function() { it('sync 7 blocks (fast)', async () => { await execute(['reset', 'data']); - await execute(['sync', fakeServer.host, String(fakeServer.port), '7', '--nocautious', '--nointeractive', '--noshuffle']); + await execute(['sync', fakeServer.host + ':' + String(fakeServer.port), '7', '--nocautious', '--nointeractive', '--noshuffle']); const res = await execute(['export-bc', '--nostdout']); res[res.length - 1].should.have.property('number').equal(7); res.should.have.length(7 + 1); // blocks #0..#7 }) it('sync 4 blocks (cautious)', async () => { - await execute(['sync', fakeServer.host, String(fakeServer.port), '11', '--nointeractive']); + await execute(['sync', fakeServer.host + ':' + String(fakeServer.port), '11', '--nointeractive']); const res = await execute(['export-bc', '--nostdout']); res[res.length - 1].should.have.property('number').equal(11); res.should.have.length(11 + 1); @@ -153,7 +153,7 @@ describe("CLI", function() { }) it('[spawn] sync 10 first blocks --memory', async () => { - await execute(['sync', fakeServer.host, String(fakeServer.port), '10', '--memory', '--cautious', '--nointeractive']); + await execute(['sync', fakeServer.host + ':' + String(fakeServer.port), '10', '--memory', '--cautious', '--nointeractive']); }) }); -- GitLab