Skip to content

Commit 279d55a

Browse files
authored
Add missing compiler directive to ServerCodeTranslatorSnippetBasedTests.swift (#1751)
1 parent 6145631 commit 279d55a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Tests/GRPCCodeGenTests/Internal/Translator/ServerCodeTranslatorSnippetBasedTests.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17+
#if os(macOS) || os(Linux) // swift-format doesn't like canImport(Foundation.Process)
18+
1719
import XCTest
1820

1921
@testable import GRPCCodeGen
@@ -429,3 +431,5 @@ final class ServerCodeTranslatorSnippetBasedTests: XCTestCase {
429431
try XCTAssertEqualWithDiff(contents, expectedSwift)
430432
}
431433
}
434+
435+
#endif // os(macOS) || os(Linux)

0 commit comments

Comments
 (0)