Skip to content

Commit 2fc2b79

Browse files
authored
Fixes for 1.0.0 rc (#6)
* Fixes for RC1 release * Use main branch of hummingbird * Use codecov@v3 action * Use hummingbird v1.0.0-rc
1 parent e80773c commit 2fc2b79

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
-ignore-filename-regex="\/Tests\/" \
3131
-instr-profile=.build/debug/codecov/default.profdata > info.lcov
3232
- name: Upload to codecov.io
33-
uses: codecov/codecov-action@v1
33+
uses: codecov/codecov-action@v3
3434
with:
3535
file: info.lcov
3636
linux:
@@ -57,6 +57,6 @@ jobs:
5757
-ignore-filename-regex="\/Tests\/" \
5858
-instr-profile .build/debug/codecov/default.profdata > info.lcov
5959
- name: Upload to codecov.io
60-
uses: codecov/codecov-action@v1
60+
uses: codecov/codecov-action@v3
6161
with:
6262
file: info.lcov

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ let package = Package(
1010
.library(name: "HummingbirdCompression", targets: ["HummingbirdCompression"]),
1111
],
1212
dependencies: [
13-
.package(url: "https://github.com/hummingbird-project/hummingbird.git", from: "1.0.0-alpha"),
13+
.package(url: "https://github.com/hummingbird-project/hummingbird.git", from: "1.0.0-rc"),
1414
.package(url: "https://github.com/adam-fowler/compress-nio.git", from: "0.4.0"),
1515
.package(url: "https://github.com/apple/swift-nio.git", from: "2.32.1"),
1616
],

Tests/HummingbirdCompressionTests/CompressionTests.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class HummingBirdCompressionTests: XCTestCase {
3939
defer { app.XCTStop() }
4040

4141
let testBuffer = self.randomBuffer(size: Int.random(in: 64000...261_335))
42-
app.XCTExecute(uri: "/echo", method: .GET, headers: ["accept-encoding": "gzip"], body: testBuffer) { response in
42+
try app.XCTExecute(uri: "/echo", method: .GET, headers: ["accept-encoding": "gzip"], body: testBuffer) { response in
4343
var body = response.body
4444
let uncompressed = try body?.decompress(with: .gzip)
4545
XCTAssertEqual(uncompressed, testBuffer)
@@ -57,7 +57,7 @@ class HummingBirdCompressionTests: XCTestCase {
5757
defer { app.XCTStop() }
5858

5959
let testBuffer = self.randomBuffer(size: 261_335)
60-
app.XCTExecute(uri: "/echo", method: .GET, headers: ["accept-encoding": "gzip"], body: testBuffer) { response in
60+
try app.XCTExecute(uri: "/echo", method: .GET, headers: ["accept-encoding": "gzip"], body: testBuffer) { response in
6161
var body = response.body
6262
let uncompressed = try body?.decompress(with: .gzip)
6363
XCTAssertEqual(uncompressed, testBuffer)
@@ -132,7 +132,7 @@ class HummingBirdCompressionTests: XCTestCase {
132132
let testBuffer = self.randomBuffer(size: 261_335)
133133
var testBufferCopy = testBuffer
134134
let compressedBuffer = try testBufferCopy.compress(with: .gzip)
135-
app.XCTExecute(uri: "/echo", method: .GET, headers: ["content-encoding": "gzip"], body: compressedBuffer) { response in
135+
try app.XCTExecute(uri: "/echo", method: .GET, headers: ["content-encoding": "gzip"], body: compressedBuffer) { response in
136136
XCTAssertEqual(response.body, testBuffer)
137137
}
138138
}
@@ -150,7 +150,7 @@ class HummingBirdCompressionTests: XCTestCase {
150150
let testBuffer = self.randomBuffer(size: 261_335)
151151
var testBufferCopy = testBuffer
152152
let compressedBuffer = try testBufferCopy.compress(with: .gzip)
153-
app.XCTExecute(uri: "/echo", method: .GET, headers: ["content-encoding": "gzip"], body: compressedBuffer) { response in
153+
try app.XCTExecute(uri: "/echo", method: .GET, headers: ["content-encoding": "gzip"], body: compressedBuffer) { response in
154154
XCTAssertEqual(response.body, testBuffer)
155155
}
156156
}
@@ -254,7 +254,7 @@ class HummingBirdCompressionTests: XCTestCase {
254254
defer { app.XCTStop() }
255255

256256
let testBuffer = self.randomBuffer(size: 261_335)
257-
app.XCTExecute(uri: "/echo", method: .GET, body: testBuffer) { response in
257+
try app.XCTExecute(uri: "/echo", method: .GET, body: testBuffer) { response in
258258
XCTAssertEqual(response.body, testBuffer)
259259
}
260260
}
@@ -272,7 +272,7 @@ class HummingBirdCompressionTests: XCTestCase {
272272
let testBuffer = self.randomBuffer(size: 150_000)
273273
var testBufferCopy = testBuffer
274274
let compressedBuffer = try testBufferCopy.compress(with: .gzip)
275-
app.XCTExecute(uri: "/echo", method: .GET, headers: ["content-encoding": "gzip"], body: compressedBuffer) { response in
275+
try app.XCTExecute(uri: "/echo", method: .GET, headers: ["content-encoding": "gzip"], body: compressedBuffer) { response in
276276
XCTAssertEqual(response.status, .payloadTooLarge)
277277
}
278278
}
@@ -294,7 +294,7 @@ class HummingBirdCompressionTests: XCTestCase {
294294
}
295295
var testBufferCopy = testBuffer
296296
let compressedBuffer = try testBufferCopy.compress(with: .gzip)
297-
app.XCTExecute(uri: "/echo", method: .GET, headers: ["content-encoding": "gzip"], body: compressedBuffer) { response in
297+
try app.XCTExecute(uri: "/echo", method: .GET, headers: ["content-encoding": "gzip"], body: compressedBuffer) { response in
298298
XCTAssertEqual(response.status, .payloadTooLarge)
299299
}
300300
}

0 commit comments

Comments
 (0)