We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cd588d3 + cc702e2 commit 3a1355eCopy full SHA for 3a1355e
Tests/LanguageServerProtocolJSONRPCTests/ConnectionTests.swift
@@ -15,6 +15,10 @@ import LanguageServerProtocolJSONRPC
15
import LSPTestSupport
16
import XCTest
17
18
+#if os(Windows)
19
+import WinSDK
20
+#endif
21
+
22
// Workaround ambiguity with Foundation.
23
typealias Notification = LanguageServerProtocol.Notification
24
@@ -258,8 +262,13 @@ class ConnectionTests: XCTestCase {
258
262
})
259
263
260
264
to.fileHandleForWriting.closeFile()
265
266
+ // 1 ms was chosen for simplicity.
267
+ _ = Sleep(1)
268
+#else
261
269
// 100 us was chosen empirically to encourage races.
270
usleep(100)
271
272
conn.close()
273
274
waitForExpectations(timeout: 10)
0 commit comments