From: Benjamin Zengin Date: Thu, 21 Jul 2016 13:38:06 +0000 (+0200) Subject: Modifies test to work with updated addKey() X-Git-Tag: dnsdist-1.1.0-beta2~136^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=721e2c1b18e9cbc18de5d8fcd094279330f21c6e;p=thirdparty%2Fpdns.git Modifies test to work with updated addKey() --- diff --git a/modules/remotebackend/test-remotebackend.cc b/modules/remotebackend/test-remotebackend.cc index 35db1cae73..b9ce22de59 100644 --- a/modules/remotebackend/test-remotebackend.cc +++ b/modules/remotebackend/test-remotebackend.cc @@ -115,8 +115,11 @@ BOOST_AUTO_TEST_CASE(test_method_getAllDomainMetadata) { BOOST_AUTO_TEST_CASE(test_method_addDomainKey) { BOOST_TEST_MESSAGE("Testing addDomainKey method"); - BOOST_CHECK_EQUAL(be->addDomainKey(DNSName("unit.test."),k1), 1); - BOOST_CHECK_EQUAL(be->addDomainKey(DNSName("unit.test."),k2), 2); + int64_t id; + be->addDomainKey(DNSName("unit.test."),k1,id); + BOOST_CHECK_EQUAL(id, 1); + be->addDomainKey(DNSName("unit.test."),k2,id); + BOOST_CHECK_EQUAL(id, 2); } BOOST_AUTO_TEST_CASE(test_method_getDomainKeys) {