@@ -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
@@ -37,7 +26,7 @@ final class ParsingTests: XCTestCase {
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
28
#if os(macOS)
40
- XCTAssertEqual ( uncapturedOutput, 1934 )
29
+ XCTAssertEqual ( uncapturedOutput, 437 )
41
30
#else
42
31
XCTAssertEqual ( uncapturedOutput, 1950 )
43
32
#endif
@@ -49,18 +38,7 @@ final class ParsingTests: XCTestCase {
49
38
var buildLog : [ String ] = try String ( contentsOf: url)
50
39
. components ( separatedBy: . newlines)
51
40
52
- let parser = Parser (
53
- colored: false ,
54
- renderer: . terminal,
55
- preserveUnbeautifiedLines: false ,
56
- additionalLines: {
57
- guard !buildLog. isEmpty else {
58
- XCTFail ( " The build log should never be empty when fetching additional lines. " )
59
- return nil
60
- }
61
- return buildLog. removeFirst ( )
62
- }
63
- )
41
+ let parser = Parser ( )
64
42
65
43
var uncapturedOutput = 0
66
44
@@ -78,7 +56,7 @@ final class ParsingTests: XCTestCase {
78
56
// Update this magic number whenever `uncapturedOutput` is less than the current magic number.
79
57
// There's a regression whenever `uncapturedOutput` is greater than the current magic number.
80
58
#if os(macOS)
81
- XCTAssertEqual ( uncapturedOutput, 67043 )
59
+ XCTAssertEqual ( uncapturedOutput, 14922 )
82
60
#else
83
61
XCTAssertEqual ( uncapturedOutput, 67611 )
84
62
#endif
0 commit comments