diff options
author | 2021-05-11 03:11:20 -0400 | |
---|---|---|
committer | 2021-05-11 09:11:20 +0200 | |
commit | fdfc9bcdd24f6861353a41b0cd630c7d82e1f868 (patch) | |
tree | 232c7d8ea0268c46fc0a74909b235ee70b0bcb09 /CODEOWNERS | |
parent | 0a3375e76bba0688ce479bcdb34d4b9ae524a438 (diff) | |
download | coredns-fdfc9bcdd24f6861353a41b0cd630c7d82e1f868.tar.gz coredns-fdfc9bcdd24f6861353a41b0cd630c7d82e1f868.tar.zst coredns-fdfc9bcdd24f6861353a41b0cd630c7d82e1f868.zip |
test: Fix rare race condition in TestZoneReload (#4617)
The following test failure for `TestZoneReload` can be observed
periodically:
`file_reload_test.go:58: Expected two RR in answer section got 2`
This failure can be consistently reproduced using the following command
(on my machine, at least):
`( cd test ; go test -v -race -run "TestZoneReload" ./... -count=500)`
test/file_reload_test.go:
Address a typo in a test failure message.
Sleep for double the file reload interval to avoid a rare
race condition between test code and the file plugin's reload code,
which is presumably a result of the time it takes to actually reload.
Signed-off-by: Stephen Greene <sgreene@redhat.com>
Diffstat (limited to 'CODEOWNERS')
0 files changed, 0 insertions, 0 deletions