Skip to content

Commit cc52a0c

Browse files
committed
chore: Clean up test dependencies to use more scoped imports of NIO, such as NIOCore and/or NIOPosix, rather than the much larger dependency of just NIO.
1 parent 9d520d1 commit cc52a0c

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

Package.swift

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,14 @@ let package = Package(
3030
.product(name: "AsyncCollections", package: "async-collections"),
3131
]
3232
),
33-
.testTarget(name: "DataLoaderTests", dependencies: ["DataLoader"]),
33+
.testTarget(
34+
name: "DataLoaderTests",
35+
dependencies: [
36+
"DataLoader",
37+
.product(name: "NIOCore", package: "swift-nio"),
38+
.product(name: "NIOPosix", package: "swift-nio"),
39+
]
40+
),
3441
.testTarget(name: "AsyncDataLoaderTests", dependencies: ["AsyncDataLoader"]),
3542
]
3643
)

Tests/DataLoaderTests/DataLoaderAbuseTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import NIO
1+
import NIOPosix
22
import XCTest
33

44
@testable import DataLoader

Tests/DataLoaderTests/DataLoaderAsyncTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import NIO
1+
import NIOPosix
22
import XCTest
33

44
@testable import DataLoader

Tests/DataLoaderTests/DataLoaderTests.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import NIO
1+
import NIOCore
2+
import NIOPosix
23
import XCTest
34

45
@testable import DataLoader

0 commit comments

Comments
 (0)