File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 13
13
import Foundation
14
14
import LanguageServerProtocol
15
15
import LSPTestSupport
16
+ import LSPLogging
16
17
import SKTestSupport
17
18
import SourceKitLSP
18
19
import XCTest
@@ -55,6 +56,17 @@ final class SwiftInterfaceTests: XCTestCase {
55
56
}
56
57
57
58
func testSystemModuleInterface( ) throws {
59
+ // This test is failing non-deterministically in CI becaue the file contents
60
+ // of the generated interface just contain a newline.
61
+ // I cannot reproduce the failure locally. Add some logging to determine
62
+ // whether the issue is sourcekitd not returning an empty generated
63
+ // interface or something around how the file is handled.
64
+ // Remove this lowering of the log level once we have determined what the
65
+ // issue is (rdar://104871745).
66
+ let previousLogLevel = Logger . shared. currentLevel
67
+ defer { Logger . shared. setLogLevel ( previousLogLevel. description) }
68
+ Logger . shared. setLogLevel ( " debug " )
69
+
58
70
let url = URL ( fileURLWithPath: " / \( UUID ( ) ) /a.swift " )
59
71
let uri = DocumentURI ( url)
60
72
You can’t perform that action at this time.
0 commit comments