fix clang-tidy error

This commit is contained in:
JCW
2026-06-02 20:02:47 +01:00
parent 93f7cabc17
commit 6e7ecb27a6

View File

@@ -561,7 +561,8 @@ TEST_F(AmendmentTableTest, has_unsupported_enabled)
table->doValidatedLedger(1, enabled, majority);
EXPECT_TRUE(table->hasUnsupportedEnabled());
EXPECT_TRUE(table->firstUnsupportedExpected());
ASSERT_TRUE(table->firstUnsupportedExpected());
// NOLINTNEXTLINE(bugprone-unchecked-optional-access) checked in ASSERT_TRUE above
EXPECT_EQ(*table->firstUnsupportedExpected(), NetClock::time_point{t} + kW);
// Make sure the table knows when it needs an update.