@@ -8,18 +8,7 @@ final class ParsingTests: XCTestCase {
8
8
var buildLog : [ String ] = try String ( contentsOf: url)
9
9
. components ( separatedBy: . newlines)
10
10
11
- let parser = Parser (
12
- colored: false ,
13
- renderer: . terminal,
14
- preserveUnbeautifiedLines: false ,
15
- additionalLines: {
16
- guard !buildLog. isEmpty else {
17
- XCTFail ( " The build log should never be empty when fetching additional lines. " )
18
- return nil
19
- }
20
- return buildLog. removeFirst ( )
21
- }
22
- )
11
+ let parser = Parser ( )
23
12
24
13
var uncapturedOutput = 0
25
14
@@ -36,7 +25,7 @@ final class ParsingTests: XCTestCase {
36
25
// It uses `XCTAssertEqual` instead of `XCTAssertLessThanOrEqual` as a reminder.
37
26
// Update this magic number whenever `uncapturedOutput` is less than the current magic number.
38
27
// There's a regression whenever `uncapturedOutput` is greater than the current magic number.
39
- XCTAssertEqual ( uncapturedOutput, 2218 )
28
+ XCTAssertEqual ( uncapturedOutput, 833 )
40
29
}
41
30
42
31
func testLargeXcodebuildLog( ) throws {
@@ -45,18 +34,7 @@ final class ParsingTests: XCTestCase {
45
34
var buildLog : [ String ] = try String ( contentsOf: url)
46
35
. components ( separatedBy: . newlines)
47
36
48
- let parser = Parser (
49
- colored: false ,
50
- renderer: . terminal,
51
- preserveUnbeautifiedLines: false ,
52
- additionalLines: {
53
- guard !buildLog. isEmpty else {
54
- XCTFail ( " The build log should never be empty when fetching additional lines. " )
55
- return nil
56
- }
57
- return buildLog. removeFirst ( )
58
- }
59
- )
37
+ let parser = Parser ( )
60
38
61
39
var uncapturedOutput = 0
62
40
@@ -73,6 +51,6 @@ final class ParsingTests: XCTestCase {
73
51
// It uses `XCTAssertEqual` instead of `XCTAssertLessThanOrEqual` as a reminder.
74
52
// Update this magic number whenever `uncapturedOutput` is less than the current magic number.
75
53
// There's a regression whenever `uncapturedOutput` is greater than the current magic number.
76
- XCTAssertEqual ( uncapturedOutput, 77104 )
54
+ XCTAssertEqual ( uncapturedOutput, 28964 )
77
55
}
78
56
}
0 commit comments