Skip to content

Commit

Permalink
Issue #1708: change http port used for local testserver from 80 to 87…
Browse files Browse the repository at this point in the history
…85\nto avoid potential collisions when port 80 is already bound
  • Loading branch information
MichaelThumes authored and bschmalhofer committed Jan 2, 2025
1 parent 5bfa832 commit 96fa66e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/test/WebUserAgent.t
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ if ( !$ChildPID ) {
);

my $Runner = Plack::Runner->new;
$Runner->parse_options(qw'--no-default-middleware --host 127.0.0.1 --port 80 -L Shotgun');
$Runner->parse_options(qw'--no-default-middleware --host 127.0.0.1 --port 8785 -L Shotgun');
$Runner->run($Wrapped);
}
catch {
Expand Down Expand Up @@ -141,28 +141,28 @@ my @Tests = (
},
{
Name => 'GET - http - Credentials ' . $TestNumber++,
URL => "http://localhost/unittest/HTTPBasicAuth/",
URL => "http://localhost:8785/unittest/HTTPBasicAuth/",
Timeout => 100,
Proxy => $Proxy,
Success => 1,
Credentials => {
User => 'guest',
Password => 'guest',
Realm => 'OTRS UnitTest',
Location => 'localhost:80',
Location => 'localhost:8785',
},
},
{
Name => 'GET - http - MissingCredentials ' . $TestNumber++,
URL => "http://localhost/unittest/HTTPBasicAuth/",
URL => "http://localhost:8785/unittest/HTTPBasicAuth/",
Timeout => 100,
Proxy => $Proxy,
Success => 0,
ErrorNumber => 401,
},
{
Name => 'GET - http - IncompleteCredentials ' . $TestNumber++,
URL => "http://localhost/unittest/HTTPBasicAuth/",
URL => "http://localhost:8785/unittest/HTTPBasicAuth/",
Timeout => 100,
Proxy => $Proxy,
Credentials => {
Expand Down

0 comments on commit 96fa66e

Please sign in to comment.