From 67cd6479e5787af9745ccbe03878a48143397ec7 Mon Sep 17 00:00:00 2001 From: Azfaar Qureshi Date: Tue, 24 Nov 2020 16:35:18 -0500 Subject: [PATCH] installing c snappy library before callign tests --- .../prometheus_remote_write_cortex_test.py | 3 --- tox.ini | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/opentelemetry-docker-tests/tests/prometheus-remote-write-cortex/prometheus_remote_write_cortex_test.py b/tests/opentelemetry-docker-tests/tests/prometheus-remote-write-cortex/prometheus_remote_write_cortex_test.py index df67a5b649..c643a9ee44 100644 --- a/tests/opentelemetry-docker-tests/tests/prometheus-remote-write-cortex/prometheus_remote_write_cortex_test.py +++ b/tests/opentelemetry-docker-tests/tests/prometheus-remote-write-cortex/prometheus_remote_write_cortex_test.py @@ -2,9 +2,6 @@ PrometheusRemoteWriteMetricsExporter, ) from opentelemetry import metrics -from opentelemetry.sdk.metrics import MeterProvider, ConsoleMetricsExporter -from opentelemetry.sdk.util import get_dict_as_key -import time from opentelemetry.test.test_base import TestBase diff --git a/tox.ini b/tox.ini index 2ad90e1d5b..6e486c2cb2 100644 --- a/tox.ini +++ b/tox.ini @@ -296,7 +296,6 @@ commands = python scripts/eachdist.py lint --check-only [testenv:docker-tests] -commands_pre = sudo apt-get install libsnappy-dev deps = pytest asyncpg==0.20.1 @@ -310,7 +309,6 @@ deps = redis ~= 3.3.11 celery ~= 4.0, != 4.4.4 protobuf>=3.13.0 - python-snappy==0.5.4 requests==2.25.0 changedir = tests/opentelemetry-docker-tests/tests @@ -333,6 +331,8 @@ commands_pre = -e {toxinidir}/instrumentation/opentelemetry-instrumentation-system-metrics \ -e {toxinidir}/opentelemetry-python-core/exporter/opentelemetry-exporter-opencensus \ -e {toxinidir}/exporter/opentelemetry-exporter-prometheus-remote-write + sudo apt-get install libsnappy-dev + pip install python-snappy docker-compose up -d python check_availability.py commands =