Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jbelkins committed Nov 13, 2024
1 parent 6896502 commit 21d8919
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ class FlexibleChecksumsMiddlewareTests: XCTestCase {
"Stream is not 'chunked eligible'",
file: file, line: line
)
if let validatedChecksum = self.builtContext.attributes.get(key: AttributeKey<String>(name: "ChecksumHeaderValidated")), validatedChecksum == expectedHeader {
if let validatedChecksum = self.builtContext.get(key: AttributeKey<String>(name: "ChecksumHeaderValidated")), validatedChecksum == expectedHeader {
isChecksumValidated = true
}
if expectedChecksum != "" {
Expand Down Expand Up @@ -304,7 +304,7 @@ class FlexibleChecksumsMiddlewareTests: XCTestCase {
}
}

if let validatedChecksum = self.builtContext.attributes.get(key: AttributeKey<String>(name: "ChecksumHeaderValidated")), validatedChecksum == expectedHeader {
if let validatedChecksum = self.builtContext.get(key: AttributeKey<String>(name: "ChecksumHeaderValidated")), validatedChecksum == expectedHeader {
isChecksumValidated = true
}
if expectedChecksum != "" {
Expand All @@ -329,7 +329,7 @@ class FlexibleChecksumsMiddlewareTests: XCTestCase {
}
} else {
try await handleMiddleware()
validatedChecksum = self.builtContext.attributes.get(key: AttributeKey<String>(name: "ChecksumHeaderValidated"))
validatedChecksum = self.builtContext.get(key: AttributeKey<String>(name: "ChecksumHeaderValidated"))
if validatedChecksum != nil && validatedChecksum == expectedValidationHeader {
isChecksumValidated = true
}
Expand Down

0 comments on commit 21d8919

Please sign in to comment.