def METHOD_NAME(aggregator, instance):
    check = SonarrCheck('sonarr', {}, [instance])
    with pytest.raises(ConnectionError):
        check.check(instance)
        aggregator.assert_all_metrics_covered()
        aggregator.assert_metrics_using_metadata(get_metadata_metrics())