diff --git a/tests/docker-compose.yml b/tests/docker-compose.yml index af3a179c3..a03368df6 100644 --- a/tests/docker-compose.yml +++ b/tests/docker-compose.yml @@ -44,12 +44,12 @@ services: volumes: - pymongodata36:/data/db - mongodb42: - image: mongo:4.2 + mongodb80: + image: mongo:8.0 ports: - "27017:27017" volumes: - - pymongodata42:/data/db + - pymongodata80:/data/db memcached: image: memcached @@ -176,7 +176,7 @@ volumes: driver: local pymongodata36: driver: local - pymongodata42: + pymongodata80: driver: local pyesdata7: driver: local diff --git a/tests/instrumentation/base_tests.py b/tests/instrumentation/base_tests.py index da2e265ed..e7564cff4 100644 --- a/tests/instrumentation/base_tests.py +++ b/tests/instrumentation/base_tests.py @@ -82,7 +82,9 @@ def test_instrument_nonexisting_method_on_module(): def test_instrument_nonexisting_method(caplog): with caplog.at_level(logging.DEBUG, "elasticapm.instrument"): _TestInstrumentNonExistingMethod().instrument() - assert_any_record_contains(caplog.records, "has no attribute", "elasticapm.instrument") + assert_any_record_contains( + caplog.records, "Skipping instrumentation of logging.Logger.non_existing_method:", "elasticapm.instrument" + ) def test_instrument_broken_module(caplog): diff --git a/tests/scripts/envs/pymongo-newest.sh b/tests/scripts/envs/pymongo-newest.sh index 8b496971b..04132244d 100644 --- a/tests/scripts/envs/pymongo-newest.sh +++ b/tests/scripts/envs/pymongo-newest.sh @@ -1,3 +1,3 @@ export PYTEST_MARKER="-m mongodb" -export DOCKER_DEPS="mongodb42" -export MONGODB_HOST="mongodb42" +export DOCKER_DEPS="mongodb80" +export MONGODB_HOST="mongodb80"