Fix unit tests for 2.8.x

refs #6207
This commit is contained in:
Michael Friedrich 2018-04-19 11:19:20 +02:00
parent cf570c9a93
commit 3a12ba75c7
1 changed files with 2 additions and 2 deletions

View File

@ -99,11 +99,11 @@ BOOST_AUTO_TEST_CASE(format)
url = new Url("https://nsclient:8443/query/check_cpu?time%5B%5D=1m&time=5m&time%5B%5D=15m");
url->SetArrayFormatUseBrackets(false);
BOOST_CHECK(url2 = new Url(url->Format(false, false)));
BOOST_CHECK(new Url(url->Format(false, false)));
url = new Url("https://icinga2/query?a[]=1&a[]=2&a[]=3");
url->SetArrayFormatUseBrackets(true);
BOOST_CHECK(url2 = new Url(url->Format(false, false)));
BOOST_CHECK(new Url(url->Format(false, false)));
}
BOOST_AUTO_TEST_CASE(illegal_legal_strings)