diff --git a/Tests/GRPCCodeGenTests/Internal/Translator/ClientCodeTranslatorSnippetBasedTests.swift b/Tests/GRPCCodeGenTests/Internal/Translator/ClientCodeTranslatorSnippetBasedTests.swift index 144749390..6e4daa1a6 100644 --- a/Tests/GRPCCodeGenTests/Internal/Translator/ClientCodeTranslatorSnippetBasedTests.swift +++ b/Tests/GRPCCodeGenTests/Internal/Translator/ClientCodeTranslatorSnippetBasedTests.swift @@ -14,6 +14,8 @@ * limitations under the License. */ +#if os(macOS) || os(Linux) // swift-format doesn't like canImport(Foundation.Process) + import XCTest @testable import GRPCCodeGen @@ -540,3 +542,5 @@ final class ClientCodeTranslatorSnippetBasedTests: XCTestCase { try XCTAssertEqualWithDiff(contents, expectedSwift) } } + +#endif // os(macOS) || os(Linux)