From f19acc45ffde0a4460495fcbc777a06ebc5d4f1e Mon Sep 17 00:00:00 2001 From: Emilie BOUIN Date: Tue, 1 Aug 2023 11:52:40 +0200 Subject: [PATCH] fix: review changes --- functions/cors-go/handler_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/cors-go/handler_test.go b/functions/cors-go/handler_test.go index e428fc3..a0cf8f6 100644 --- a/functions/cors-go/handler_test.go +++ b/functions/cors-go/handler_test.go @@ -13,7 +13,7 @@ const offlineTestingServer = "http://localhost:8080" func TestHandleWithCors(t *testing.T) { resp, err := http.Get(offlineTestingServer) - assert.Nil(t, err) + assert.NoError(t, err) defer resp.Body.Close() @@ -24,7 +24,7 @@ func TestHandleWithCors(t *testing.T) { assert.Equal(t, "text/plain", resp.Header.Get("Content-Type")) bodyBytes, err := io.ReadAll(resp.Body) - assert.Nil(t, err) + assert.NoError(t, err) assert.Equal(t, "This function is allowing most CORS requests", string(bodyBytes)) }