lint: Fix linter errors

(cherry picked from commit 51a2b2035f)
pull/5128/head
Timothy Messier 2 years ago
parent a92c88dfb5
commit 632d048f7b
No known key found for this signature in database
GPG Key ID: EFD2F184F7600572

@ -19,8 +19,9 @@ import (
"github.com/hashicorp/go-hclog"
)
// This is used as an internal error to indicate that a refresh is already in
// progress, as a signal that the caller may want to handle it a different way.
// ErrRefreshInProgress is used as an internal error to indicate that a refresh
// is already in progress, as a signal that the caller may want to handle it a
// different way.
var ErrRefreshInProgress error = stderrors.New("cache refresh in progress")
type RefreshService struct {

@ -28,7 +28,9 @@ func Test_openStore(t *testing.T) {
require.NotNil(t, store)
assert.FileExists(t, tmpDir+"/test.db")
rw := db.New(store)
rw.Query(ctx, "select * from target", nil)
rows, err := rw.Query(ctx, "select * from target", nil)
require.NoError(t, err)
rows.Close()
})
t.Run("homedir", func(t *testing.T) {
tmpDir := t.TempDir()

Loading…
Cancel
Save