mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-25 10:22:26 +00:00
Merge pull request #63 from Valorith/copilot/sub-pr-55-again
Gate DDL rollback test behind --run-ddl-tests flag
This commit is contained in:
commit
efd27c63ce
@ -936,8 +936,19 @@ inline void TestClientBuffPersistence()
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void TestClientBuffPersistenceRollback()
|
inline void TestClientBuffPersistenceRollback(bool run_ddl)
|
||||||
{
|
{
|
||||||
|
// DDL on the live character_buffs table can lock it and disrupt running servers.
|
||||||
|
// Only run when the caller explicitly opts in via --run-ddl-tests.
|
||||||
|
if (!run_ddl) {
|
||||||
|
RunTest(
|
||||||
|
"Client Buff Persistence > Rollback: skipped (pass --run-ddl-tests to enable)",
|
||||||
|
true,
|
||||||
|
true
|
||||||
|
);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
constexpr uint32 test_character_id = 99999992;
|
constexpr uint32 test_character_id = 99999992;
|
||||||
constexpr uint16 preexisting_spell_id = 6824; // stable, widely-used spell present in all data sets
|
constexpr uint16 preexisting_spell_id = 6824; // stable, widely-used spell present in all data sets
|
||||||
constexpr int suppressed_tics = 99;
|
constexpr int suppressed_tics = 99;
|
||||||
@ -1348,7 +1359,7 @@ void ZoneCLI::TestZoneState(int argc, char **argv, argh::parser &cmd, std::strin
|
|||||||
TestZoneVariables();
|
TestZoneVariables();
|
||||||
TestHpManaEnd();
|
TestHpManaEnd();
|
||||||
TestClientBuffPersistence();
|
TestClientBuffPersistence();
|
||||||
TestClientBuffPersistenceRollback();
|
TestClientBuffPersistenceRollback(cmd["--run-ddl-tests"]);
|
||||||
TestBuffs();
|
TestBuffs();
|
||||||
TestLocationChange();
|
TestLocationChange();
|
||||||
TestEntityVariables();
|
TestEntityVariables();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user