Skip to content

Commit 347101f

Browse files
fix code source tests
1 parent f64437c commit 347101f

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

tests/integrations/stdlib/test_httplib.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,9 @@ def add_http_request_source_with_pinned_timestamps(span):
842842
if span_streaming:
843843
span._start_timestamp = datetime.datetime(2024, 1, 1, microsecond=0)
844844
span._timestamp = datetime.datetime(2024, 1, 1, microsecond=99999)
845-
return add_http_request_source(span)
845+
result = add_http_request_source(span)
846+
span._timestamp = None
847+
return result
846848
else:
847849
span.start_timestamp = datetime.datetime(2024, 1, 1, microsecond=0)
848850
span.timestamp = datetime.datetime(2024, 1, 1, microsecond=99999)
@@ -914,7 +916,9 @@ def add_http_request_source_with_pinned_timestamps(span):
914916
if span_streaming:
915917
span._start_timestamp = datetime.datetime(2024, 1, 1, microsecond=0)
916918
span._timestamp = datetime.datetime(2024, 1, 1, microsecond=100001)
917-
return add_http_request_source(span)
919+
result = add_http_request_source(span)
920+
span._timestamp = None
921+
return result
918922
else:
919923
span.start_timestamp = datetime.datetime(2024, 1, 1, microsecond=0)
920924
span.timestamp = datetime.datetime(2024, 1, 1, microsecond=100001)

0 commit comments

Comments
 (0)