From 1d8ddb3d186dab5e91299bb7afa443c2c63df07c Mon Sep 17 00:00:00 2001 From: anthony sottile Date: Mon, 9 Sep 2024 17:07:14 -0400 Subject: [PATCH] ref: make this conditional less confusing --- src/sentry/testutils/hybrid_cloud.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sentry/testutils/hybrid_cloud.py b/src/sentry/testutils/hybrid_cloud.py index bc2a9c5eb20a8e..f07b5937eded1f 100644 --- a/src/sentry/testutils/hybrid_cloud.py +++ b/src/sentry/testutils/hybrid_cloud.py @@ -122,7 +122,7 @@ def __call__(self, execute: Callable[..., Any], *params: Any) -> Any: raise CrossTransactionAssertionError( f"Found mixed open transactions between dbs {open_transactions}" ) - if open_transactions and not (self.alias in open_transactions): + if open_transactions and self.alias not in open_transactions: raise CrossTransactionAssertionError( f"Transaction opened for db {open_transactions}, but command running against db {self.alias}" )