We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a78bd25 commit 41bf12eCopy full SHA for 41bf12e
tests/trace_service.py
@@ -23,7 +23,10 @@ def get_batch(self):
23
return self.batches.pop()
24
25
def get_span(self):
26
- return self.get_batch()[0].scope_spans[0].spans.pop()
+ batch = self.get_batch()
27
+ assert len(batch.scope_spans) == 1
28
+ assert len(batch.scope_spans[0].spans) == 1
29
+ return batch.scope_spans[0].spans.pop()
30
31
32
@pytest.fixture(scope="module")
0 commit comments