From 7c3ce7823125658e7f997385ca6cbe635d6def15 Mon Sep 17 00:00:00 2001 From: Alexander Kukushkin Date: Wed, 29 Nov 2023 08:44:35 +0100 Subject: [PATCH] Fix Citus transaction rollback condition check (#2964) It seems that sometimes we get an exact match, what makes behave tests to fail. --- features/steps/citus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/steps/citus.py b/features/steps/citus.py index 4dd2ffa6..7277cccc 100644 --- a/features/steps/citus.py +++ b/features/steps/citus.py @@ -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)