Skip to content

Commit

Permalink
Fix linter warning
Browse files Browse the repository at this point in the history
SA1019: bbolt.ErrDatabaseNotOpen is deprecated: Use the error variables defined in the bbolt/errors package. (staticcheck)
  • Loading branch information
adombeck committed Feb 13, 2025
1 parent 410bd5e commit 35bd83a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/users/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
userstestutils "github.com/ubuntu/authd/internal/users/testutils"
"github.com/ubuntu/authd/internal/users/types"
"github.com/ubuntu/authd/log"
"go.etcd.io/bbolt"
bboltErrors "go.etcd.io/bbolt/errors"
)

func TestNewManager(t *testing.T) {
Expand Down Expand Up @@ -98,7 +98,7 @@ func TestStop(t *testing.T) {

// Should fail, because the cache is closed
_, err := userstestutils.GetManagerCache(m).AllUsers()
require.ErrorIs(t, err, bbolt.ErrDatabaseNotOpen, "AllUsers should return an error, but did not")
require.ErrorIs(t, err, bboltErrors.ErrDatabaseNotOpen, "AllUsers should return an error, but did not")
}

type userCase struct {
Expand Down

0 comments on commit 35bd83a

Please sign in to comment.