Skip to content

Commit 7dbe8a0

Browse files
committed
Changed test HTTP server to return response from sub thread
1 parent d1272be commit 7dbe8a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TestFoundation/HTTPServer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ class _HTTPServer {
207207
deadlineTime = .now()
208208
}
209209

210-
DispatchQueue.main.asyncAfter(deadline: deadlineTime) {
210+
DispatchQueue.global().asyncAfter(deadline: deadlineTime) {
211211
do {
212212
try self.socket.writeData(header: response.header, body: response.body, sendDelay: sendDelay, bodyChunks: bodyChunks)
213213
semaphore.signal()

0 commit comments

Comments
 (0)