Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
magik6k committed Oct 24, 2024
1 parent f1dd9ae commit a3a1c3a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
14 changes: 12 additions & 2 deletions lib/paths/http_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,12 @@ func TestRemoteGetAllocated(t *testing.T) {
pfhandler := mocks.NewMockPartialFileHandler(mockCtrl)

handler := &paths.FetchHandler{
Local: lstore,
Local: struct {
paths.Store
paths.StashStore
}{
Store: lstore,
},
PfHandler: pfhandler,
}

Expand Down Expand Up @@ -406,7 +411,12 @@ func TestRemoteGetSector(t *testing.T) {
}

handler := &paths.FetchHandler{
lstore,
struct {
paths.Store
paths.StashStore
}{
Store: lstore,
},
pfhandler,
}

Expand Down
4 changes: 2 additions & 2 deletions lib/paths/remote_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ func TestMoveShared(t *testing.T) {
hs1 := httptest.NewServer(mux1)
hs2 := httptest.NewServer(mux2)

ls1, err := paths.NewLocal(ctx, lr1, index, []string{hs1.URL + "/remote"})
ls1, err := paths.NewLocal(ctx, lr1, index, hs1.URL+"/remote")
require.NoError(t, err)
ls2, err := paths.NewLocal(ctx, lr2, index, []string{hs2.URL + "/remote"})
ls2, err := paths.NewLocal(ctx, lr2, index, hs2.URL+"/remote")
require.NoError(t, err)

dirStor := filepath.Join(dir, "stor")
Expand Down

0 comments on commit a3a1c3a

Please sign in to comment.