Fix Citus transaction rollback condition check (#2964)

It seems that sometimes we get an exact match, what makes behave tests to fail.
This commit is contained in:
Alexander Kukushkin
2023-11-29 08:44:35 +01:00
committed by GitHub
parent 76e19ecfe2
commit 7c3ce78231
+1 -1
View File
@@ -131,5 +131,5 @@ def check_transaction(context, name, time_limit):
@step("a transaction finishes in {timeout:d} seconds")
def check_transaction_timeout(context, timeout):
assert (datetime.now(tzutc) - context.xact_start).seconds > timeout, \
assert (datetime.now(tzutc) - context.xact_start).seconds >= timeout, \
"a transaction finished earlier than in {0} seconds".format(timeout)