Skip to content

Commit 1df4073

Browse files
chore: appease linter
1 parent a2182e1 commit 1df4073

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

agent/proto/resourcesmonitor/fetcher_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
package resourcesmonitor_test
22

33
import (
4-
"errors"
54
"testing"
65

6+
"github.com/stretchr/testify/require"
7+
"golang.org/x/xerrors"
8+
79
"github.com/coder/coder/v2/agent/proto/resourcesmonitor"
810
"github.com/coder/coder/v2/cli/clistat"
911
"github.com/coder/coder/v2/coderd/util/ptr"
10-
"github.com/stretchr/testify/require"
1112
)
1213

1314
type mockStatter struct {
@@ -32,7 +33,7 @@ func (s *mockStatter) HostMemory(_ clistat.Prefix) (*clistat.Result, error) {
3233
func (s *mockStatter) Disk(_ clistat.Prefix, path string) (*clistat.Result, error) {
3334
disk, ok := s.disk[path]
3435
if !ok {
35-
return nil, errors.New("path not found")
36+
return nil, xerrors.New("path not found")
3637
}
3738
return &disk, nil
3839
}

0 commit comments

Comments
 (0)