From b8b64f0bb7c147fc81fa94ffaeed3700ea9b9859 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 13 Oct 2026 21:18:48 -1000 Subject: [PATCH] Keep the test callback a plain static so its name follows the variable style --- tests/components/core/test_callback.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/components/core/test_callback.cpp b/tests/components/core/test_callback.cpp index a0c004abef4..7cf969734ad 100644 --- a/tests/components/core/test_callback.cpp +++ b/tests/components/core/test_callback.cpp @@ -53,7 +53,7 @@ TEST(CallbackCreate, MutableStateIsKeptAcrossCalls) { auto counter = [n = 0](int x) mutable { mutable_seen = (n += x); }; static_assert(sizeof(counter) <= sizeof(void *) && std::is_trivially_copyable_v); // create() never frees its heap path; held for the whole run like a callback registered in setup(). - static const auto cb = IntCallback::create(counter); + static auto cb = IntCallback::create(counter); cb.call(1); cb.call(2); EXPECT_EQ(mutable_seen, 3);