Skip to content

Commit d0b4f73

Browse files
committed
refactor: compared the array
1 parent 6bf2443 commit d0b4f73

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

instrumentation/opentelemetry-instrumentation-threading/tests/test_threading.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,7 @@ def test_trace_context_propagation_in_thread_pool_with_multiple_workers(
7575
result_span_contexts = [future.result() for future in futures_list]
7676

7777
# check result
78-
self.assertEqual(len(result_span_contexts), max_workers)
79-
self.assertEqual(
80-
len(result_span_contexts), len(expected_span_contexts)
81-
)
82-
for index, result_span_context in enumerate(result_span_contexts):
83-
self.assertEqual(
84-
result_span_context, expected_span_contexts[index]
85-
)
78+
self.assertEqual(result_span_contexts, expected_span_contexts)
8679

8780
def test_trace_context_propagation_in_thread_pool_with_single_worker(self):
8881
max_workers = 1

0 commit comments

Comments
 (0)