Skip to content

Commit cd11cf8

Browse files
Move tests of NIOCore types from NIOPosixTests to NIOCoreTests (#2093)
* Move tests of NIOCore types from NIOPosixTests to NIOCoreTests * fixup: LinuxTest Signed-off-by: Si Beaumont <beaumont@apple.com> * fixup: Port some test utils to not use NIOPosix Signed-off-by: Si Beaumont <beaumont@apple.com> * fixup: No swift-system, duh Signed-off-by: Si Beaumont <beaumont@apple.com> * fixup: read-write for temporary file in test helper Signed-off-by: Si Beaumont <beaumont@apple.com> Co-authored-by: Cory Benfield <lukasa@apple.com>
1 parent b1b44ca commit cd11cf8

38 files changed

+102
-24
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ var targets: [PackageDescription.Target] = [
8888
.executableTarget(name: "NIOAsyncAwaitDemo",
8989
dependencies: ["NIOPosix", "NIOCore", "NIOHTTP1"]),
9090
.testTarget(name: "NIOCoreTests",
91-
dependencies: ["NIOCore"]),
91+
dependencies: ["NIOCore", "NIOEmbedded", "NIOFoundationCompat"]),
9292
.testTarget(name: "NIOEmbeddedTests",
9393
dependencies: ["NIOConcurrencyHelpers", "NIOCore", "NIOEmbedded"]),
9494
.testTarget(name: "NIOPosixTests",

Tests/NIOPosixTests/BaseObjectsTest+XCTest.swift renamed to Tests/NIOCoreTests/BaseObjectsTest+XCTest.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// This source file is part of the SwiftNIO open source project
44
//
5-
// Copyright (c) 2017-2021 Apple Inc. and the SwiftNIO project authors
5+
// Copyright (c) 2017-2022 Apple Inc. and the SwiftNIO project authors
66
// Licensed under Apache License v2.0
77
//
88
// See LICENSE.txt for license information

Tests/NIOPosixTests/ByteBufferLengthPrefixTests+XCTest.swift renamed to Tests/NIOCoreTests/ByteBufferLengthPrefixTests+XCTest.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// This source file is part of the SwiftNIO open source project
44
//
5-
// Copyright (c) 2021 Apple Inc. and the SwiftNIO project authors
5+
// Copyright (c) 2021-2022 Apple Inc. and the SwiftNIO project authors
66
// Licensed under Apache License v2.0
77
//
88
// See LICENSE.txt for license information
File renamed without changes.

Tests/NIOPosixTests/ChannelOptionStorageTest+XCTest.swift renamed to Tests/NIOCoreTests/ChannelOptionStorageTest+XCTest.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// This source file is part of the SwiftNIO open source project
44
//
5-
// Copyright (c) 2017-2021 Apple Inc. and the SwiftNIO project authors
5+
// Copyright (c) 2017-2022 Apple Inc. and the SwiftNIO project authors
66
// Licensed under Apache License v2.0
77
//
88
// See LICENSE.txt for license information

0 commit comments

Comments
 (0)