Skip to content

Commit

Permalink
Fix oldtest again
Browse files Browse the repository at this point in the history
  • Loading branch information
martenrichter committed Mar 9, 2024
1 parent 94598da commit 6b6a1e0
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions main/old_test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ if (process.argv.some((el) => el === 'http2')) {
}

async function run() {
if (
process.env.USE_HTTP2 !== 'true' &&
process.env.USE_PONYFILL !== 'true' &&
process.env.USE_POLYFILL !== 'true'
) {
await quicheLoaded
}
console.log('try connecting to server that does not exist')
const badClient = new WebTransport('https://127.0.0.1:49823/echo', {
serverCertificateHashes: [
Expand Down Expand Up @@ -90,14 +97,6 @@ async function run() {

const url = 'https://127.0.0.1:8080/echo'

if (
process.env.USE_HTTP2 !== 'true' &&
process.env.USE_PONYFILL !== 'true' &&
process.env.USE_POLYFILL !== 'true'
) {
await quicheLoaded
}

/** @type {import('../lib/dom').WebTransport | null} */
let client = new WebTransport(url, {
serverCertificateHashes: [{ algorithm: 'sha-256', value: certificate.hash }]
Expand Down

0 comments on commit 6b6a1e0

Please sign in to comment.