Skip to content

Commit

Permalink
refacto: avoid unused test_port() calls in unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
g-bougard committed Sep 28, 2018
1 parent 896c9ed commit 5df4d96
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions t/agent/http/server.t
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ if (my $pid = fork()) {
exit $client->get('http://127.0.0.1:62354')->is_success();
}

# find an available port
my $port = FusionInventory::Agent::Tools::first { test_port($_) } 8080 .. 8090;

lives_ok {
$server = FusionInventory::Agent::HTTP::Server->new(
agent => FusionInventory::Test::Agent->new(),
Expand Down Expand Up @@ -90,7 +87,7 @@ ok (
);

# find an available port
$port = FusionInventory::Agent::Tools::first { test_port($_) } 8080 .. 8090;
my $port = FusionInventory::Agent::Tools::first { test_port($_) } 8080 .. 8090;

lives_ok {
$server = FusionInventory::Agent::HTTP::Server->new(
Expand Down

0 comments on commit 5df4d96

Please sign in to comment.