You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dd-java-agent/agent-profiling/profiling-uploader/src/main/java/com/datadog/profiling/uploader/ProfileUploader.java
+14-7Lines changed: 14 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -127,21 +127,23 @@ public void onResponse(final Call call, final Response response) {
127
127
128
128
ioLogger.error("Failed to upload profile", getLoggerResponse(response));
129
129
}
130
+
// Note: this whole callback never touches body and would be perfectly happy even if server
Copy file name to clipboardExpand all lines: dd-java-agent/agent-profiling/profiling-uploader/src/test/java/com/datadog/profiling/uploader/ProfileUploaderTest.java
+23-4Lines changed: 23 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -61,6 +61,7 @@
61
61
importokhttp3.mockwebserver.MockResponse;
62
62
importokhttp3.mockwebserver.MockWebServer;
63
63
importokhttp3.mockwebserver.RecordedRequest;
64
+
importokhttp3.mockwebserver.SocketPolicy;
64
65
importorg.junit.jupiter.api.AfterEach;
65
66
importorg.junit.jupiter.api.BeforeEach;
66
67
importorg.junit.jupiter.api.Test;
@@ -112,6 +113,10 @@ public class ProfileUploaderTest {
0 commit comments