Skip to content

Commit c27dbeb

Browse files
committed
fix hosts in plugin-tests.js
1 parent 6794f60 commit c27dbeb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/plugin-tests.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3220,7 +3220,7 @@ let syncTests = {
32203220

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

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

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

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy