mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 06:55:30 +00:00
[9.20] fix: test: Take into account key collisions in ksr system test
Closes #5229 Backport of MR !10238 Merge branch 'backport-5229-ksr-system-test-can-fail-on-key-collision-9.20' into 'bind-9.20' See merge request isc-projects/bind9!10240
This commit is contained in:
@@ -597,6 +597,10 @@ def test_ksr_common(servers):
|
|||||||
selected += 1
|
selected += 1
|
||||||
if "Generating" in output:
|
if "Generating" in output:
|
||||||
generated += 1
|
generated += 1
|
||||||
|
# Subtract if there was a key collision.
|
||||||
|
if "collide" in output:
|
||||||
|
generated -= 1
|
||||||
|
|
||||||
assert selected == 2
|
assert selected == 2
|
||||||
assert generated == 2
|
assert generated == 2
|
||||||
for index, key in enumerate(overlapping_zsks):
|
for index, key in enumerate(overlapping_zsks):
|
||||||
|
Reference in New Issue
Block a user