Skip to content

Commit

Permalink
Add more checkes to get_span.
Browse files Browse the repository at this point in the history
Co-authored-by: p-pautov <37922380+p-pautov@users.noreply.github.com>
  • Loading branch information
jimf5 and p-pautov authored Dec 20, 2024
1 parent a78bd25 commit 41bf12e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/trace_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ def get_batch(self):
return self.batches.pop()

def get_span(self):
return self.get_batch()[0].scope_spans[0].spans.pop()
batch = self.get_batch()
assert len(batch.scope_spans) == 1
assert len(batch.scope_spans[0].spans) == 1
return batch.scope_spans[0].spans.pop()


@pytest.fixture(scope="module")
Expand Down

0 comments on commit 41bf12e

Please sign in to comment.