diff --git a/test/rpc.test.js b/test/rpc.test.js index 37ee5e3..fc90b99 100644 --- a/test/rpc.test.js +++ b/test/rpc.test.js @@ -40,6 +40,8 @@ test('e2e', async t => { clientStore.replicate(socket) const rpc = new ProtomuxRPC(socket) + const repoName = 'foo' + const url = `${serverSwarm.keyPair.publicKey.toString('hex')}/${repoName}` let payload = Buffer.from(JSON.stringify({ body: { url, method: 'get-repos' } })) const reposRes = await rpc.request('get-repos', payload) const reposJSON = JSON.parse(reposRes.toString()) @@ -54,7 +56,7 @@ test('e2e', async t => { await drive.core.update({ wait: true }) - payload = Buffer.from(JSON.stringify({ body: { url, method: 'get-refs', data: 'foo' }})) + payload = Buffer.from(JSON.stringify({ body: { url, method: 'get-refs', data: repoName }})) const refsRes = await rpc.request('get-refs', payload) t.ok(refsRes) diff --git a/test_home.tar.gz b/test_home.tar.gz index e1291c9..826e8ef 100644 Binary files a/test_home.tar.gz and b/test_home.tar.gz differ