]> granicus.if.org Git - icinga2/commitdiff
Fix unit tests for 2.8.x
authorMichael Friedrich <michael.friedrich@icinga.com>
Thu, 19 Apr 2018 09:19:20 +0000 (11:19 +0200)
committerMichael Friedrich <michael.friedrich@icinga.com>
Thu, 19 Apr 2018 09:19:20 +0000 (11:19 +0200)
refs #6207

test/remote-url.cpp

index 645b858c0a6ba10315ab3de6c3135135512c9f7a..c0ead06257caa7ffe3f680590b02e8266e9c2fd0 100644 (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)