Skip to content

Commit 95bacdd

Browse files
committed
Added comments to test scenarios
1 parent 04e7cef commit 95bacdd

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ def test_without_thread_nesting(self):
7575
self.assertIsNone(root.parent)
7676

7777
def test_with_thread_nesting(self):
78+
#
79+
# Following scenario is tested.
80+
# threadA -> methodA -> threadB -> methodB
81+
#
82+
7883
square_thread = threading.Thread(target=self.print_square_with_thread, args=(10,))
7984

8085

@@ -93,6 +98,12 @@ def test_with_thread_nesting(self):
9398
self.assertIsNone(root.parent)
9499

95100
def test_with_thread_multi_nesting(self):
101+
#
102+
# Following scenario is tested.
103+
# / threadB -> methodB
104+
# threadA -> methodA ->
105+
# \ threadC -> methodC
106+
#
96107
calculate_thread = threading.Thread(target=self.calculate, args=(10,))
97108

98109
with self.tracer.start_as_current_span("root"):

0 commit comments

Comments
 (0)