Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Item14023: Fix unit test issue.
  • Loading branch information
gac410 committed Feb 28, 2017
1 parent b130e82 commit 4aa7228
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions UnitTestContrib/test/unit/NetTests.pm
Expand Up @@ -7,8 +7,6 @@ use strict;

use Foswiki::Net;

our $expectedHeader;

sub new {
my $self = shift()->SUPER::new( "Net", @_ );
return $self;
Expand All @@ -30,7 +28,8 @@ sub test_getExternalResource {
$this->assert_equals( 200, $response->code() );

# Note: HTTP::Response doesn't clean out \r correctly
my $mess = $response->message();
my $mess = $response->message();
my $expectedHeader = qr#text/html; charset=(utf-?8|iso-?8859-?1)#;
$mess =~ s/\r//g;
$this->assert_str_equals( 'OK', $mess );
$this->assert_matches( qr/$expectedHeader/is,
Expand Down

0 comments on commit 4aa7228

Please sign in to comment.