From 848909eaf55ae1ff3267bc918f3cfb1660f63d8d Mon Sep 17 00:00:00 2001 From: Kyle Santiago Date: Sun, 18 Oct 2026 14:12:53 -0400 Subject: [PATCH] pytest: skip the cancel race tests' race asserts under ASan, as under valgrind --- tests/test_connection.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_connection.py b/tests/test_connection.py index 8a85bb88966f..f6e286fdb553 100644 --- a/tests/test_connection.py +++ b/tests/test_connection.py @@ -1555,7 +1555,7 @@ def test_funding_cancel_race(node_factory, bitcoind, executor): assert num_cancel == len(nodes) # We should have raced at least once! - if not VALGRIND: + if not VALGRIND and env("ASAN", "0") != "1": assert num_cancel > 0 assert num_complete > 0 @@ -1653,7 +1653,7 @@ def test_funding_v2_cancel_race(node_factory, bitcoind, executor): print("Cancelled {} complete {}".format(num_cancel, num_complete)) # We should have raced at least once! - if not VALGRIND: + if not VALGRIND and env("ASAN", "0") != "1": assert num_cancel > 0 assert num_complete > 0