mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Disable loadtime check in statschannel test
It is better to disable the specific check that causes the test to fail
rather than mark the entire test as xfail, which can mask other issues
which the test is capable of detecting.
(cherry picked from commit 7522583b57)
This commit is contained in:
parent
d6c17a4502
commit
0c5d718849
3 changed files with 5 additions and 7 deletions
|
|
@ -34,10 +34,12 @@ def check_refresh(refresh, min_time, max_time):
|
|||
assert refresh <= max_time
|
||||
|
||||
|
||||
def check_loaded(loaded, expected):
|
||||
def check_loaded(loaded, expected): # pylint: disable=unused-argument
|
||||
# Sanity check the zone timers values
|
||||
assert loaded == expected
|
||||
assert loaded < now
|
||||
# NOTE This check has been disabled due to GL #3983
|
||||
# assert loaded == expected
|
||||
# assert loaded < now
|
||||
pass
|
||||
|
||||
|
||||
def check_zone_timers(loaded, expires, refresh, loaded_exp):
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@
|
|||
# information regarding copyright ownership.
|
||||
|
||||
from datetime import datetime
|
||||
import os
|
||||
|
||||
import pytest
|
||||
|
||||
|
|
@ -83,7 +82,6 @@ def test_zone_timers_primary_json(statsport):
|
|||
)
|
||||
|
||||
|
||||
@pytest.mark.xfail(reason="GL #3983", strict="LEGACY_TEST_RUNNER" not in os.environ)
|
||||
def test_zone_timers_secondary_json(statsport):
|
||||
generic.test_zone_timers_secondary(
|
||||
fetch_zones_json,
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@
|
|||
# information regarding copyright ownership.
|
||||
|
||||
from datetime import datetime
|
||||
import os
|
||||
import xml.etree.ElementTree as ET
|
||||
|
||||
import pytest
|
||||
|
|
@ -113,7 +112,6 @@ def test_zone_timers_primary_xml(statsport):
|
|||
)
|
||||
|
||||
|
||||
@pytest.mark.xfail(reason="GL #3983", strict="LEGACY_TEST_RUNNER" not in os.environ)
|
||||
def test_zone_timers_secondary_xml(statsport):
|
||||
generic.test_zone_timers_secondary(
|
||||
fetch_zones_xml,
|
||||
|
|
|
|||
Loading…
Reference in a new issue