]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rec: Clear taskQueue at start of tets run 13281/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Thu, 21 Sep 2023 06:43:29 +0000 (08:43 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Thu, 21 Sep 2023 07:15:09 +0000 (09:15 +0200)
Not all tests leave an empty queue.
Test that use syncres get an auto clear, but this test does not use syncres.

pdns/recursordist/test-recpacketcache_cc.cc

index 8b0787d7f52c0a538878b7f4b244bbe8bcf9859a..a3d783b0910dd954c0f1aa5d6c909edff57f108a 100644 (file)
@@ -93,6 +93,8 @@ BOOST_AUTO_TEST_CASE(test_recPacketCacheSimpleWithRefresh)
   uint32_t ttd = 3600;
   BOOST_CHECK_EQUAL(rpc.size(), 0U);
 
+  taskQueueClear();
+
   DNSName qname("www.powerdns.com");
   vector<uint8_t> packet;
   DNSPacketWriter pw(packet, qname, QType::A);