expectedHistoryEvents []*historypb.HistoryEvent,
actualHistoryEvents []*historypb.HistoryEvent,
if len(expectedHistoryEvents) != len(actualHistoryEvents) {
panic("len(expectedHistoryEvents) != len(actualHistoryEvents)")
}
for i, actualHistoryEvent := range actualHistoryEvents {
sanitizeEventID := expectedHistoryEvents[i].GetEventId() == 0
sanitizeVersion := expectedHistoryEvents[i].GetVersion() == 0