Skip to content

Commit 75b33d6

Browse files
committed
Updated Linux tests
1 parent 88ce75f commit 75b33d6

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Tests/LinuxMain.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import XCTest
22

3-
import SwiftDataLoaderTests
3+
@testable import SwiftDataLoaderTests
44

5-
var tests = [XCTestCaseEntry]()
6-
tests += DataLoaderTests.allTests()
7-
tests += DataLoaderAbuseTests.allTests()
8-
XCTMain(tests)
5+
XCTMain([
6+
testCase(DataLoaderAbuseTests.allTests),
7+
testCase(DataLoaderTests.allTests)
8+
])

Tests/SwiftDataLoaderTests/DataLoaderAbuseTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ class DataLoaderAbuseTests: XCTestCase {
107107
XCTAssertTrue(try value1.wait() == 1)
108108
}
109109

110-
static var allTests = [
110+
static var allTests: [(String, (DataLoaderAbuseTests) -> () throws -> Void)] = [
111111
("testFuntionWithNoValues", testFuntionWithNoValues),
112112
("testBatchFuntionMustPromiseAnArrayOfCorrectLength", testBatchFuntionMustPromiseAnArrayOfCorrectLength),
113113
("testBatchFuntionWithSomeValues", testBatchFuntionWithSomeValues),

Tests/SwiftDataLoaderTests/DataLoaderTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ final class DataLoaderTests: XCTestCase {
362362
XCTAssertTrue(loadCalls == [["B"]])
363363
}
364364

365-
static var allTests = [
365+
static var allTests: [(String, (DataLoaderTests) -> () throws -> Void)] = [
366366
("testRealyRealySimpleDataLoader", testReallyReallySimpleDataLoader),
367367
("testLoadingMultipleKeys", testLoadingMultipleKeys),
368368
("testMultipleRequests", testMultipleRequests),

0 commit comments

Comments
 (0)