From 3f965b3e37f4f5969d26b079d7e72454f7997fb2 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Mon, 11 Feb 2019 20:49:00 +0000 Subject: [PATCH] Bug 17047: (RM follow-up) Fix tests for Ubuntu 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 --- t/db_dependent/Koha/SharedContent.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/db_dependent/Koha/SharedContent.t b/t/db_dependent/Koha/SharedContent.t index 44c9f78925..2be0e1d632 100644 --- a/t/db_dependent/Koha/SharedContent.t +++ b/t/db_dependent/Koha/SharedContent.t @@ -46,7 +46,7 @@ t::lib::Mocks::mock_config( 'mana_config', 'https://foo.bar'); 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'); -- 2.39.5