Skip to content

Commit

Permalink
fix: review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Bemilie committed Aug 1, 2023
1 parent a76d3d7 commit f19acc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/cors-go/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand All @@ -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))

}

0 comments on commit f19acc4

Please sign in to comment.