Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
vearutop committed Aug 3, 2023
1 parent adbef7b commit 12b6bf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package web_test
import (
"context"
"fmt"
"io/ioutil"
"net/http"
"net/http/httptest"
"os"
"testing"

"github.com/stretchr/testify/assert"
Expand Down Expand Up @@ -67,7 +67,7 @@ func TestDefaultService(t *testing.T) {
assert.Equal(t, http.StatusOK, rw.Code)
assertjson.EqualMarshal(t, rw.Body.Bytes(), service.OpenAPI)

expected, err := os.ReadFile("_testdata/openapi.json")
expected, err := ioutil.ReadFile("_testdata/openapi.json")
require.NoError(t, err)
assertjson.EqualMarshal(t, expected, service.OpenAPI)

Expand Down

0 comments on commit 12b6bf6

Please sign in to comment.