From 37c549e5100bee23a736cf40f5cdf7ca5e8c8248 Mon Sep 17 00:00:00 2001 From: fpellet Date: Mon, 22 Jan 2024 15:35:18 +0100 Subject: [PATCH] Fix tests --- tests/Giraffe.Tests/HttpContextExtensionsTests.fs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Giraffe.Tests/HttpContextExtensionsTests.fs b/tests/Giraffe.Tests/HttpContextExtensionsTests.fs index 5655af27..62e5c26b 100644 --- a/tests/Giraffe.Tests/HttpContextExtensionsTests.fs +++ b/tests/Giraffe.Tests/HttpContextExtensionsTests.fs @@ -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) } [] @@ -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) } [] @@ -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) } []