From 04ee52f1bc24c29aa4f20d5e4690823be758ac2e Mon Sep 17 00:00:00 2001 From: Umputun Date: Thu, 22 Sep 2022 11:38:44 -0500 Subject: [PATCH] fix reject test --- middleware_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middleware_test.go b/middleware_test.go index 5862c7e..d95893b 100644 --- a/middleware_test.go +++ b/middleware_test.go @@ -291,7 +291,7 @@ func TestReject(t *testing.T) { assert.Equal(t, http.StatusForbidden, resp.StatusCode) b, err := io.ReadAll(resp.Body) assert.NoError(t, err) - assert.Equal(t, `no no`, string(b)) + assert.Equal(t, "no no\n", string(b)) } }