lint: Fix linter errors

(cherry picked from commit 51a2b2035f9c6bb51fe8f5f1defeeb514183fecd)
This commit is contained in:
Timothy Messier committed 2024-09-24 14:18:54 +00:00
1 parent a92c88dfb5
commit 632d048f7b
2 files changed
+6 -3

No files matched your search

+3 -2
View File
@@ -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()