]> git.ipfire.org Git - thirdparty/pdns.git/commit
auth: Better fix for the leak reported by LSAN in test-distributor_hh.cc
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 20 Jun 2024 08:21:48 +0000 (10:21 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 20 Jun 2024 08:21:48 +0000 (10:21 +0200)
commit681cdfb76c06fbfe89e1ae606ac629e42829cb7c
tree3c67a9c593693a4964b5c4c73670e0cb7288dd2b
parent610b25bcdbf84ae4f4abf010898f3110c52e711f
auth: Better fix for the leak reported by LSAN in test-distributor_hh.cc

This unit test is checking that we correctly throw when too many queries
are waiting in the distribution pipe, by making the mock backend slow
on purpose. Once the distributor has been restarted as expected, we need
to wait until the mock backend has processed all queued queries, otherwise
Leak Sanitizer will rightfully report a memory leak.
pdns/test-distributor_hh.cc