Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OTel] cassandra unittest fix #639

Merged
merged 1 commit into from
Sep 30, 2024
Merged
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
12 changes: 6 additions & 6 deletions tests/clients/test_cassandra-driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import pytest
from cassandra import ConsistencyLevel
from cassandra.cluster import Cluster
from cassandra.cluster import Cluster, ResultSet
from cassandra.query import SimpleStatement

from instana.singletons import agent, tracer
Expand Down Expand Up @@ -43,7 +43,7 @@ def _resource(self) -> Generator[None, None, None]:
def test_untraced_execute(self) -> None:
res = session.execute("SELECT name, age, email FROM users")

assert res
assert isinstance(res, ResultSet)

time.sleep(0.5)

Expand All @@ -69,7 +69,7 @@ def test_execute(self) -> None:
with tracer.start_as_current_span("test"):
res = session.execute("SELECT name, age, email FROM users")

assert res
assert isinstance(res, ResultSet)

time.sleep(0.5)

Expand Down Expand Up @@ -101,7 +101,7 @@ def test_execute_as_root_exit_span(self) -> None:
agent.options.allow_exit_as_root = True
res = session.execute("SELECT name, age, email FROM users")

assert res
assert isinstance(res, ResultSet)

time.sleep(0.5)

Expand All @@ -128,7 +128,7 @@ def test_execute_async(self) -> None:
with tracer.start_as_current_span("test"):
res = session.execute_async("SELECT name, age, email FROM users").result()

assert res
assert isinstance(res, ResultSet)

time.sleep(0.5)

Expand Down Expand Up @@ -164,7 +164,7 @@ def test_simple_statement(self) -> None:
)
res = session.execute(query)

assert res
assert isinstance(res, ResultSet)

time.sleep(0.5)

Expand Down
Loading