Skip to content

Commit c4d4f61

Browse files
authored
Merge pull request #178 from owenv/test-speedup
Shrink response file test input size
2 parents b136462 + 840911f commit c4d4f61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/SwiftDriverTests/SwiftDriverTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ final class SwiftDriverTests: XCTestCase {
645645
}
646646

647647
func testUsingResponseFiles() throws {
648-
let manyArgs = (1...500_000).map { "-DTEST_\($0)" }
648+
let manyArgs = (1...20000).map { "-DTEST_\($0)" }
649649
// Needs response file
650650
do {
651651
var driver = try Driver(args: ["swift"] + manyArgs + ["foo.swift"])
@@ -659,7 +659,7 @@ final class SwiftDriverTests: XCTestCase {
659659
let responseFilePath = try AbsolutePath(validating: String(resolvedArgs[1].dropFirst()))
660660
let contents = try localFileSystem.readFileContents(responseFilePath).description
661661
XCTAssertTrue(contents.hasPrefix("-frontend\n-interpret\nfoo.swift"))
662-
XCTAssertTrue(contents.contains("-D\nTEST_500000"))
662+
XCTAssertTrue(contents.contains("-D\nTEST_20000"))
663663
XCTAssertTrue(contents.contains("-D\nTEST_1"))
664664
}
665665
// Forced response file

0 commit comments

Comments
 (0)