Added size assertion in test workload

This commit is contained in:
Jon Fu 2019-11-08 09:39:25 -08:00
parent f7b3686fc7
commit 3de7ae5b0c
1 changed files with 1 additions and 0 deletions

View File

@ -461,6 +461,7 @@ struct RemoveServersSafelyWorkload : TestWorkload {
.detail("Removing", removeServer->toString()); .detail("Removing", removeServer->toString());
toKillMarkFailedArray.erase(removeServer); toKillMarkFailedArray.erase(removeServer);
} }
ASSERT(toKillMarkFailedArray.size() <= toKillArray.size());
auto removeServer = toKill.begin(); auto removeServer = toKill.begin();
TraceEvent("RemoveAndKill", functionId) TraceEvent("RemoveAndKill", functionId)
.detail("Step", "ReplaceNonFailedKillSet") .detail("Step", "ReplaceNonFailedKillSet")