]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Prevent spurious failures of the async unit tests
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 15 Sep 2023 09:32:33 +0000 (11:32 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 15 Sep 2023 09:32:33 +0000 (11:32 +0200)
commit1237c7f4c55f1e1fba7ba58e95636d18e1a9f823
tree012a077e382647535fc642822822df500796633d
parent5817643663070ec84ca04dccba37586fa327c3fe
dnsdist: Prevent spurious failures of the async unit tests

The events should be triggered either almost immediately or after
10 ms, but we have seen many spurious failures on our CI, likely
because the box is overloaded, so sleep for up to 100 ms to be sure.
I managed to reproduce the issue locally by running this command in
parallel of the tests, for reference: `stress --cpu <number of HT cores>`.
pdns/dnsdistdist/test-dnsdistasync.cc