@@ -143,9 +143,6 @@ def test_push_span(tmp_path, tracer):
143143 ddup .config (env = "test" , service = test_name , version = "my_version" , output_filename = pprof_prefix )
144144 ddup .start ()
145145
146- # Flush any stale samples from previous tests to ensure clean state
147- ddup .upload (tracer = tracer )
148-
149146 resource = str (uuid .uuid4 ())
150147 span_type = ext .SpanTypes .WEB
151148
@@ -187,9 +184,6 @@ def test_push_span_unregister_thread(tmp_path, monkeypatch, tracer):
187184 ddup .config (env = "test" , service = test_name , version = "my_version" , output_filename = pprof_prefix )
188185 ddup .start ()
189186
190- # Flush any stale samples from previous tests to ensure clean state
191- ddup .upload (tracer = tracer )
192-
193187 resource = str (uuid .uuid4 ())
194188 span_type = ext .SpanTypes .WEB
195189
@@ -238,9 +232,6 @@ def test_push_non_web_span(tmp_path, tracer):
238232 ddup .config (env = "test" , service = test_name , version = "my_version" , output_filename = pprof_prefix )
239233 ddup .start ()
240234
241- # Flush any stale samples from previous tests to ensure clean state
242- ddup .upload (tracer = tracer )
243-
244235 resource = str (uuid .uuid4 ())
245236 span_type = ext .SpanTypes .SQL
246237
@@ -280,9 +271,6 @@ def test_push_span_none_span_type(tmp_path, tracer):
280271 ddup .config (env = "test" , service = test_name , version = "my_version" , output_filename = pprof_prefix )
281272 ddup .start ()
282273
283- # Flush any stale samples from previous tests to ensure clean state
284- ddup .upload (tracer = tracer )
285-
286274 tracer ._endpoint_call_counter_span_processor .enable ()
287275
288276 resource = str (uuid .uuid4 ())
@@ -688,9 +676,6 @@ def test_collect_span_id(tracer, tmp_path):
688676 ddup .config (env = "test" , service = test_name , version = "my_version" , output_filename = pprof_prefix )
689677 ddup .start ()
690678
691- # Flush any stale samples from previous tests to ensure clean state
692- ddup .upload (tracer = tracer )
693-
694679 tracer ._endpoint_call_counter_span_processor .enable ()
695680 with stack .StackCollector (tracer = tracer ):
696681 resource = str (uuid .uuid4 ())
@@ -733,9 +718,6 @@ def test_collect_span_resource_after_finish(tracer, tmp_path, request):
733718 ddup .config (env = "test" , service = test_name , version = "my_version" , output_filename = pprof_prefix )
734719 ddup .start ()
735720
736- # Flush any stale samples from previous tests to ensure clean state
737- ddup .upload (tracer = tracer )
738-
739721 tracer ._endpoint_call_counter_span_processor .enable ()
740722 with stack .StackCollector (tracer = tracer ):
741723 resource = str (uuid .uuid4 ())
@@ -777,9 +759,6 @@ def test_resource_not_collected(tmp_path, tracer):
777759 ddup .config (env = "test" , service = test_name , version = "my_version" , output_filename = pprof_prefix )
778760 ddup .start ()
779761
780- # Flush any stale samples from previous tests to ensure clean state
781- ddup .upload (tracer = tracer )
782-
783762 with stack .StackCollector (tracer = tracer ):
784763 resource = str (uuid .uuid4 ())
785764 span_type = ext .SpanTypes .WEB
@@ -816,9 +795,6 @@ def test_collect_nested_span_id(tmp_path, tracer, request):
816795 ddup .config (env = "test" , service = test_name , version = "my_version" , output_filename = pprof_prefix )
817796 ddup .start ()
818797
819- # Flush any stale samples from previous tests to ensure clean state
820- ddup .upload (tracer = tracer )
821-
822798 tracer ._endpoint_call_counter_span_processor .enable ()
823799 with stack .StackCollector (tracer = tracer ):
824800 resource = str (uuid .uuid4 ())
0 commit comments