diff --git a/kqueen/middleware.py b/kqueen/middleware.py index 00127bb4..f1985472 100644 --- a/kqueen/middleware.py +++ b/kqueen/middleware.py @@ -34,7 +34,6 @@ def record_request_data(response): def check_prometheus(): is_gunicorn = "gunicorn" in os.environ.get("SERVER_SOFTWARE", "") - if 'prometheus_multiproc_dir' in os.environ: os.makedirs(os.environ['prometheus_multiproc_dir'], exist_ok=True) diff --git a/kqueen/tests/test_manual_cluster.py b/kqueen/tests/test_manual_cluster.py index 48086e0b..7b3e9377 100644 --- a/kqueen/tests/test_manual_cluster.py +++ b/kqueen/tests/test_manual_cluster.py @@ -67,8 +67,6 @@ def create_cluster(self): content_type='application/json', ) - content = response.data.decode(response.charset) - assert response.status_code == 200 self.cluster_id = response.json['id']