From 41c76595618291f9b69d7e03f3e7d1239cbfe1e9 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Fri, 29 Apr 2022 13:44:52 +0000 Subject: [PATCH] So the race is between setting the new serial to return and the message coming in Make sure we set the new serial asap --- regression-tests.auth-py/test_XFRIncomplete.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/regression-tests.auth-py/test_XFRIncomplete.py b/regression-tests.auth-py/test_XFRIncomplete.py index aef9016f0f..6061d3123f 100644 --- a/regression-tests.auth-py/test_XFRIncomplete.py +++ b/regression-tests.auth-py/test_XFRIncomplete.py @@ -24,8 +24,7 @@ class BadXFRServer(object): return self._currentSerial def moveToSerial(self, newSerial): - if newSerial == self._currentSerial: - print("newSerial == self._currentSerial", file=sys.stderr) + if newSerial == self._currentSerial or newSerial == self._targetSerial: return False #if newSerial != self._currentSerial + 1: @@ -172,6 +171,7 @@ slave-cycle-interval=1 if currentSerial > serial: raise AssertionError("Expected serial %d, got %d" % (serial, currentSerial)) if currentSerial == serial: + badxfrServer.moveToSerial(serial+1) return attempts = attempts + 1 -- 2.47.2