expect{subject}.toraise_error(Sentry::Client::ResponseInvalidSizeError,"Sentry API response is too big. Limit is #{Gitlab::Utils::DeepSize.human_default_max_size}.")
expect{subject}.toraise_error(Sentry::Client::ResponseInvalidSizeError,'Sentry API response is too big. Limit is 1 MB.')