mirror of
https://github.com/aljazceru/gitpear.git
synced 2025-12-17 06:04:25 +01:00
@@ -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)
|
||||
|
||||
|
||||
BIN
test_home.tar.gz
BIN
test_home.tar.gz
Binary file not shown.
Reference in New Issue
Block a user