Skip to content
Merged

Fix CI #2735

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions tests/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -176,7 +176,7 @@ volumes:
driver: local
pymongodata36:
driver: local
pymongodata42:
pymongodata80:
driver: local
pyesdata7:
driver: local
Expand Down
4 changes: 3 additions & 1 deletion tests/instrumentation/base_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
4 changes: 2 additions & 2 deletions tests/scripts/envs/pymongo-newest.sh
Original file line number Diff line number Diff line change
@@ -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"
Loading