fix: Fix GCC 15 discovered bugs (#2425)

This commit is contained in:
Ayaz Salikhov
2025-08-12 15:57:14 +01:00
committed by GitHub
parent 36bfcc7543
commit 7e42507b9a
4 changed files with 51 additions and 18 deletions

View File

@@ -45,7 +45,12 @@ TEST_F(AmendmentBlockHandlerTest, CallTonotifyAmendmentBlockedSetsStateAndRepeat
handler.notifyAmendmentBlocked();
EXPECT_TRUE(state.isAmendmentBlocked);
// Code runs significantly slower when assertions are enabled
#ifdef _GLIBCXX_ASSERTIONS
runContextFor(std::chrono::milliseconds{10});
#else
runContextFor(std::chrono::milliseconds{1});
#endif
}
struct DefaultAmendmentBlockActionTest : LoggerFixture {};