lint: Fix linter errors
(cherry picked from commit 51a2b2035f9c6bb51fe8f5f1defeeb514183fecd)
This commit is contained in:
2 files changed
+6
-3
No files matched your search
+3
-2
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user