In Ubuntu the message returned is:
An error occurred, mana server returned: Can't connect to foo.bar:443 (Name or service not known)
Checking for 'Can't connect' and not enforcing end of string should be sufficient and fixes the test
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
is(Koha::SharedContent::get_sharing_url(), 'https://foo.bar', 'Mana URL');
my $result = Koha::SharedContent::search_entities('report', $query);
-ok($result->{msg} =~ /Can\'t connect to foo.bar:443$/, 'Unable to connect');
+ok($result->{msg} =~ /Can\'t connect to foo.bar:443/, 'Unable to connect');
is($result->{code}, 500, 'Code is 500');
my $ua = Test::MockModule->new('LWP::UserAgent');