Skip to content

Commit

Permalink
Merge pull request #18 from HDegroote/more-time-for-request
Browse files Browse the repository at this point in the history
(tests) Add more time before timeout on request
  • Loading branch information
prdn authored Apr 9, 2024
2 parents 6be8d93 + a19f646 commit d31a977
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/end-to-end-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ test('Cannot access private-mode server with public key', async t => {
const clientPort = await setupHyperteleClient(pubKey, bootstrap, t, { isPrivate: false })

// Could also be a socket hangup if more time is given
await t.exception(async () => await request(clientPort), /Request timeout/)
await t.exception(async () => await request(clientPort, { msTimeout: 1000 }), /Request timeout/)
})

test('Can proxy in non-private mode', async t => {
Expand Down Expand Up @@ -125,7 +125,7 @@ async function setupHyperteleClient (seed, bootstrap, t, { isPrivate = false } =
return clientPort
}

async function request (port, { msTimeout = 500 } = {}) {
async function request (port, { msTimeout = 5000 } = {}) {
const link = `http://127.0.0.1:${port}`

return new Promise((resolve, reject) => {
Expand Down

0 comments on commit d31a977

Please sign in to comment.