From 3a12ba75c767ba336ace628d9c8e219aeefeb921 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Thu, 19 Apr 2018 11:19:20 +0200 Subject: [PATCH] Fix unit tests for 2.8.x refs #6207 --- test/remote-url.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/remote-url.cpp b/test/remote-url.cpp index 645b858c0..c0ead0625 100644 --- a/test/remote-url.cpp +++ b/test/remote-url.cpp @@ -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) -- 2.40.0