Skip to content

Commit 0d966fa

Browse files
committed
test: use different ports for each test to avoid already in use errors
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: passed - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 1d9e0f7 commit 0d966fa

File tree

1 file changed

+8
-8
lines changed
  • lib/node_modules/@stdlib/net/disposable-http-server/test

1 file changed

+8
-8
lines changed

lib/node_modules/@stdlib/net/disposable-http-server/test/test.main.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ tape( 'if only provided JavaScript, the server serves an HTML boilerplate and th
171171
var flg;
172172

173173
opts = {
174-
'port': 7331,
174+
'port': 7332,
175175
'address': '127.0.0.1',
176176
'javascript': 'console.log("Beep");'
177177
};
@@ -251,7 +251,7 @@ tape( 'if provided HTML and JavaScript, the server serves the HTML and then the
251251
var flg;
252252

253253
opts = {
254-
'port': 7331,
254+
'port': 7333,
255255
'address': '127.0.0.1',
256256
'html': '<script src="/bundle.js"></script>',
257257
'javascript': 'console.log("Beep");'
@@ -329,7 +329,7 @@ tape( 'if a client only requests JavaScript, the server serves the JavaScript an
329329
var flg;
330330

331331
opts = {
332-
'port': 7331,
332+
'port': 7334,
333333
'address': '127.0.0.1',
334334
'javascript': 'console.log("Beep");'
335335
};
@@ -385,7 +385,7 @@ tape( 'if the server receives a request for something other than the JavaScript
385385
var opts;
386386

387387
opts = {
388-
'port': 7331,
388+
'port': 7335,
389389
'address': '127.0.0.1',
390390
'html': '<h1>Beep</h1>'
391391
};
@@ -431,7 +431,7 @@ tape( 'if the server receives a request while closing, the server returns a `503
431431
var opts;
432432

433433
opts = {
434-
'port': 7331,
434+
'port': 7336,
435435
'address': '127.0.0.1',
436436
'html': 'Beep!'
437437
};
@@ -506,7 +506,7 @@ tape( 'the function accepts `Buffer` objects for both HTML and JavaScript', func
506506
var flg;
507507

508508
opts = {
509-
'port': 7331,
509+
'port': 7337,
510510
'address': '127.0.0.1',
511511
'html': string2buffer( '<script src="/bundle.js"></script>' ),
512512
'javascript': string2buffer( 'console.log("Beep");' )
@@ -589,7 +589,7 @@ tape( 'the server will close any persistent connections on close', function test
589589
});
590590

591591
opts = {
592-
'port': 7331,
592+
'port': 7338,
593593
'address': '127.0.0.1',
594594
'html': '<h1>Beep</h1>'
595595
};
@@ -648,7 +648,7 @@ tape( 'if the `open` option is `true`, the function will attempt to open the con
648648
var flg;
649649

650650
opts = {
651-
'port': 7331,
651+
'port': 7339,
652652
'address': '127.0.0.1',
653653
'html': '<h1>Beep</h1>',
654654
'open': true

0 commit comments

Comments
 (0)