Skip to content

Commit

Permalink
fix hosts in plugin-tests.js
Browse files Browse the repository at this point in the history
  • Loading branch information
evanw committed Feb 8, 2025
1 parent 6794f60 commit c27dbeb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/plugin-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -3220,7 +3220,7 @@ let syncTests = {

// Fetch once
try {
await fetch(server.host, server.port, '/out.js')
await fetch(server.hosts[0], server.port, '/out.js')
throw new Error('Expected an error to be thrown')
} catch (err) {
assert.strictEqual(err.statusCode, 503)
Expand All @@ -3232,7 +3232,7 @@ let syncTests = {
await writeFileAsync(input, `console.log(1+2)`)

// Fetch again
const buffer = await fetchUntilSuccessOrTimeout(server.host, server.port, '/out.js')
const buffer = await fetchUntilSuccessOrTimeout(server.hosts[0], server.port, '/out.js')
assert.strictEqual(buffer.toString(), 'console.log(1 + 2);\n')
assert.strictEqual(latestResult.errors.length, 0)
assert.strictEqual(latestResult.outputFiles, undefined)
Expand Down Expand Up @@ -3270,7 +3270,7 @@ let syncTests = {

// Fetch once
try {
await fetch(server.host, server.port, '/out.js')
await fetch(server.hosts[0], server.port, '/out.js')
throw new Error('Expected an error to be thrown')
} catch (err) {
assert.strictEqual(err.statusCode, 503)
Expand All @@ -3283,7 +3283,7 @@ let syncTests = {
await writeFileAsync(input, `console.log(1+2)`)

// Fetch again
const buffer = await fetchUntilSuccessOrTimeout(server.host, server.port, '/out.js')
const buffer = await fetchUntilSuccessOrTimeout(server.hosts[0], server.port, '/out.js')
assert.strictEqual(buffer.toString(), 'console.log(1 + 2);\n')
assert.strictEqual(latestResult.errors.length, 0)
assert.strictEqual(latestResult.outputFiles.length, 1)
Expand Down

0 comments on commit c27dbeb

Please sign in to comment.