File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ dev = [
6262 " pytest" ,
6363 " pytest-cov" ,
6464 " pytest-mock" ,
65+ " pytest-rerunfailures" ,
6566 " pre-commit>=3.0.0" ,
6667 " ruff"
6768]
Original file line number Diff line number Diff line change 1010import pytest
1111import requests
1212import urllib3
13+
14+ import tests .apps .flask_app # noqa: F401
1315from instana .instrumentation .urllib3 import (
1416 _collect_kvs as collect_kvs ,
15- extract_custom_headers ,
17+ )
18+ from instana .instrumentation .urllib3 import (
1619 collect_response ,
20+ extract_custom_headers ,
1721)
1822from instana .singletons import agent , tracer
19-
20- import tests .apps .flask_app # noqa: F401
2123from tests .helpers import testenv
2224
2325if TYPE_CHECKING :
24- from instana .span .span import InstanaSpan
2526 from pytest import LogCaptureFixture
2627
28+ from instana .span .span import InstanaSpan
29+
2730
2831class TestUrllib3 :
2932 @pytest .fixture (autouse = True )
@@ -136,6 +139,7 @@ def test_get_request(self):
136139 assert isinstance (urllib3_span .stack , list )
137140 assert len (urllib3_span .stack ) > 1
138141
142+ @pytest .mark .flaky (reruns = 3 , reruns_delay = 2 )
139143 def test_get_request_https (self ):
140144 request_url = "https://jsonplaceholder.typicode.com:443/todos/1"
141145 with tracer .start_as_current_span ("test" ):
You can’t perform that action at this time.
0 commit comments