Skip to content

Commit

Permalink
chore(lint): fix lint warning
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Henderson <[email protected]>
  • Loading branch information
hairyhenderson committed May 28, 2024
1 parent 769ab61 commit 721751d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/tests/integration/datasources_vault_ec2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"net/http/httptest"
"testing"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"gotest.tools/v3/fs"
)
Expand All @@ -28,7 +29,10 @@ func setupDatasourcesVaultEc2Test(t *testing.T) (*fs.Dir, *vaultClient, *httptes
if r.Body != nil {
var err error
b, err = io.ReadAll(r.Body)
require.NoError(t, err)
if !assert.NoError(t, err) {
w.WriteHeader(http.StatusInternalServerError)
return
}
defer r.Body.Close()
}
t.Logf("IMDS Token request: %s %s: %s", r.Method, r.URL, b)
Expand Down

0 comments on commit 721751d

Please sign in to comment.