Skip to content

Commit a3a1c3a

Browse files
committed
fix lint
1 parent f1dd9ae commit a3a1c3a

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

lib/paths/http_handler_test.go

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,12 @@ func TestRemoteGetAllocated(t *testing.T) {
207207
pfhandler := mocks.NewMockPartialFileHandler(mockCtrl)
208208

209209
handler := &paths.FetchHandler{
210-
Local: lstore,
210+
Local: struct {
211+
paths.Store
212+
paths.StashStore
213+
}{
214+
Store: lstore,
215+
},
211216
PfHandler: pfhandler,
212217
}
213218

@@ -406,7 +411,12 @@ func TestRemoteGetSector(t *testing.T) {
406411
}
407412

408413
handler := &paths.FetchHandler{
409-
lstore,
414+
struct {
415+
paths.Store
416+
paths.StashStore
417+
}{
418+
Store: lstore,
419+
},
410420
pfhandler,
411421
}
412422

lib/paths/remote_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ func TestMoveShared(t *testing.T) {
8787
hs1 := httptest.NewServer(mux1)
8888
hs2 := httptest.NewServer(mux2)
8989

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

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

0 commit comments

Comments
 (0)