Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fpellet committed Jan 22, 2024
1 parent 604e993 commit 37c549e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Giraffe.Tests/HttpContextExtensionsTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ let ``WriteBytesAsync should not return Content-Length in header on 100`` () =
match result with
| None -> assertFail "Result was expected to be non-empty"
| Some ctx ->
Assert.Empty(ctx.Response.Headers["Content-Length"])
Assert.Null(ctx.Response.Headers.ContentLength)
}

[<Fact>]
Expand All @@ -221,7 +221,7 @@ let ``WriteBytesAsync should not return Content-Length in header on 204`` () =
match result with
| None -> assertFail "Result was expected to be non-empty"
| Some ctx ->
Assert.Empty(ctx.Response.Headers["Content-Length"])
Assert.Null(ctx.Response.Headers.ContentLength)
}

[<Fact>]
Expand All @@ -245,7 +245,7 @@ let ``WriteBytesAsync with HTTP CONNECT should not return Content-Length in head
match result with
| None -> assertFail "Result was expected to be non-empty"
| Some ctx ->
Assert.Empty(ctx.Response.Headers["Content-Length"])
Assert.Null(ctx.Response.Headers.ContentLength)
}

[<Fact>]
Expand Down

0 comments on commit 37c549e

Please sign in to comment.