File tree Expand file tree Collapse file tree 5 files changed +17
-19
lines changed Expand file tree Collapse file tree 5 files changed +17
-19
lines changed Original file line number Diff line number Diff line change 13
13
fail-fast : false
14
14
matrix :
15
15
image :
16
- - swift:5.0.3-xenial
17
- - swift:5.1.5-xenial
18
16
- swift:5.2.5-xenial
19
- - swift:5.3.2-xenial
20
17
- swift:5.3.2-bionic
18
+ - swift:5.5.0-focal
21
19
container : ${{ matrix.image }}
22
20
steps :
23
21
- name : Checkout Repository
34
32
- name : Select latest available Xcode
35
33
uses : maxim-lobanov/setup-xcode@v1.2.1
36
34
with :
37
- xcode-version : 12.2
35
+ xcode-version : 13
38
36
- name : Checkout Repository
39
37
uses : actions/checkout@v2
40
38
- name : Build Swift Debug Package
Original file line number Diff line number Diff line change @@ -17,14 +17,14 @@ let package = Package(
17
17
18
18
dependencies: [
19
19
. package ( url: " https://github.com/apple/swift-nio.git " ,
20
- from: " 2.25.1 " ) ,
20
+ from: " 2.33.0 " ) ,
21
21
/* use this for proper 100-continue until
22
22
https://github.com/apple/swift-nio/pull/1330 is working:
23
23
.package(url: "file:///Users/helge/dev/Swift/NIO/swift-nio-helje5",
24
24
.branch("feature/100-continue")),
25
25
*/
26
26
. package ( url: " https://github.com/apple/swift-log.git " ,
27
- from: " 1.4.0 " )
27
+ from: " 1.4.2 " )
28
28
] ,
29
29
30
30
targets: [
Original file line number Diff line number Diff line change @@ -156,9 +156,7 @@ public let _defaultJSONEncoderOptions : JSONEncoder.OutputFormatting = {
156
156
157
157
// MARK: - JSON Streams
158
158
159
- public extension WritableStreamType where WritablePayload == Buffer ,
160
- Self : ErrorEmitterTarget
161
- {
159
+ public extension WritableStreamType where WritablePayload == Buffer {
162
160
163
161
@discardableResult
164
162
@inlinable
Original file line number Diff line number Diff line change @@ -35,14 +35,14 @@ public extension process { // File System
35
35
36
36
@inlinable
37
37
static func cwd( ) -> String {
38
- let rc = xsys. getcwd ( nil /* malloc */, 0 )
39
- assert ( rc != nil , " process has no cwd?? " )
40
- defer { free ( rc ) }
41
- guard rc != nil else { return " " }
42
-
43
- let s = String ( validatingUTF8: rc! )
38
+ let pathMaybe = xsys. getcwd ( nil /* malloc */, 0 )
39
+ assert ( pathMaybe != nil , " process has no cwd?? " )
40
+ guard let path = pathMaybe else { return " " }
41
+ defer { free ( path ) }
42
+
43
+ let s = String ( validatingUTF8: path )
44
44
assert ( s != nil , " could not convert cwd to String?! " )
45
- return s!
45
+ return s ?? " /tmp "
46
46
}
47
47
}
48
48
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ final class AgentTests: XCTestCase {
14
14
let exp = expectation ( description: " get result " )
15
15
16
16
http. get ( " https://zeezide.de " ) { res in
17
- XCTAssertEqual ( res. statusCode, 200 )
17
+ XCTAssertEqual ( res. statusCode, 200 , " Status code is not 200! " )
18
18
19
19
res. onError { error in
20
20
XCTAssert ( false , " an error happened: \( error) " )
@@ -23,8 +23,10 @@ final class AgentTests: XCTestCase {
23
23
res | concat { buffer in
24
24
do {
25
25
let s = try buffer. toString ( )
26
- XCTAssert ( s. contains ( " <html " ) )
27
- XCTAssert ( s. contains ( " ZeeZide " ) )
26
+ XCTAssert ( s. contains ( " <html " ) ,
27
+ " buffer does not start w/ <html: \( s) " )
28
+ XCTAssert ( s. contains ( " ZeeZide " ) ,
29
+ " buffer does not contain ZeeZide: \( s) " )
28
30
}
29
31
catch {
30
32
XCTAssert ( false , " failed to grab string: \( error) " )
You can’t perform that action at this time.
0 commit comments