Skip to content

Commit

Permalink
updated assert condition
Browse files Browse the repository at this point in the history
  • Loading branch information
CagriYonca authored and pvital committed Sep 30, 2024
1 parent 02d8a92 commit 2ffa1b2
Showing 1 changed file with 6 additions and 6 deletions.
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

0 comments on commit 2ffa1b2

Please sign in to comment.