Skip to content

Commit 2b90c94

Browse files
committed
Update test
1 parent ee9836f commit 2b90c94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/InstanaAgentTests/IntegrationTest/URLSessionTaskIntegrationTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,14 @@ class URLSessionTaskIntegrationTests: InstanaTestCase {
115115
request.setValue("\(data.count)", forHTTPHeaderField: "Content-Length")
116116

117117
// When
118-
URLSession.shared.uploadTask(with: request, from: data) {data, response, error in
118+
URLSession(configuration: .default).uploadTask(with: request, from: data) {data, response, error in
119119
self.run(after: 2.0) {
120120
if self.sentBeacon?.hu == self.testURL.absoluteString {
121121
waitFor.fulfill()
122122
}
123123
}
124124
}.resume()
125-
wait(for: [waitFor], timeout: 20)
125+
wait(for: [waitFor], timeout: 60)
126126

127127
// Then verify the sent beacon body in the URLRequest going out to the server
128128
AssertEqualAndNotNil(sentBeacon?.hm, "POST")

0 commit comments

Comments
 (0)