Skip to content

Commit fa92706

Browse files
committed
Guard Swift Testing code with #if + #endif
1 parent 02b2d6d commit fa92706

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Tests/NIOCoreTests/AsyncChannel/AsynChannelUnixDomainSocketTests.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
// SPDX-License-Identifier: Apache-2.0
1212
//
1313
//===----------------------------------------------------------------------===//
14+
#if canImport(Testing)
1415
import NIOPosix
1516
import Testing
1617

@@ -167,3 +168,4 @@ private final class NewlineDelimiterCoder: ByteToMessageDecoder, MessageToByteEn
167168
out.writeInteger(self.newLine)
168169
}
169170
}
171+
#endif // canImport(Testing)

0 commit comments

Comments
 (0)