Skip to content

Commit

Permalink
Uncomment StreamPriorityData frames in stream handler tests (#73)
Browse files Browse the repository at this point in the history
We had TODOs to uncomment some H2 frames in tests when their init became
available, which it has. This PR uncomments them.
  • Loading branch information
gjcairo authored Feb 18, 2025
1 parent 11bb867 commit acbd55d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,9 @@ final class GRPCClientStreamHandlerTests: XCTestCase {
let framesToBeIgnored: [HTTP2Frame.FramePayload] = [
.ping(.init(), ack: false),
.goAway(lastStreamID: .rootStream, errorCode: .cancel, opaqueData: nil),
// TODO: uncomment when it's possible to build a `StreamPriorityData`.
// .priority(
// HTTP2Frame.StreamPriorityData(exclusive: false, dependency: .rootStream, weight: 4)
// ),
.priority(
HTTP2Frame.StreamPriorityData(exclusive: false, dependency: .rootStream, weight: 4)
),
.settings(.ack),
.pushPromise(.init(pushedStreamID: .maxID, headers: [:])),
.windowUpdate(windowSizeIncrement: 4),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,9 @@ final class GRPCServerStreamHandlerTests: XCTestCase {
let framesToBeIgnored: [HTTP2Frame.FramePayload] = [
.ping(.init(), ack: false),
.goAway(lastStreamID: .rootStream, errorCode: .cancel, opaqueData: nil),
// TODO: uncomment when it's possible to build a `StreamPriorityData`.
// .priority(
// HTTP2Frame.StreamPriorityData(exclusive: false, dependency: .rootStream, weight: 4)
// ),
.priority(
HTTP2Frame.StreamPriorityData(exclusive: false, dependency: .rootStream, weight: 4)
),
.settings(.ack),
.pushPromise(.init(pushedStreamID: .maxID, headers: [:])),
.windowUpdate(windowSizeIncrement: 4),
Expand Down

0 comments on commit acbd55d

Please sign in to comment.