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-30 09:02:50 +01:00
parent ebd05871d9
commit 49e4a6ed7d
+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)