Update zone/cli/tests/cli_zone_state.cpp

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Vayle 2026-03-08 20:51:07 -04:00 committed by GitHub
parent fe772f6eeb
commit 2666d624eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1013,6 +1013,10 @@ inline void TestClientBuffPersistenceRollback()
"CHANGE `suppressed_bkp` `suppressed` tinyint(1) unsigned NOT NULL DEFAULT 0" "CHANGE `suppressed_bkp` `suppressed` tinyint(1) unsigned NOT NULL DEFAULT 0"
); );
RunTest("Client Buff Persistence > Rollback: column restore succeeded", true, restore_result.Success()); RunTest("Client Buff Persistence > Rollback: column restore succeeded", true, restore_result.Success());
if (!restore_result.Success()) {
// Fail fast to avoid running further tests with a broken schema
return;
}
// Pre-existing rows must still be present because the transaction was rolled back // Pre-existing rows must still be present because the transaction was rolled back
const auto rows_after = CharacterBuffsRepository::GetWhere( const auto rows_after = CharacterBuffsRepository::GetWhere(