Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ywqzzy committed Dec 13, 2023
1 parent 0ffa204 commit ec40da6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions br/pkg/lightning/backend/external/reader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ import (
)

func testReadAndCompare(
t *testing.T,
ctx context.Context,
t *testing.T,
kvs []common.KvPair,
store storage.ExternalStorage,
memSizeLimit int) {
Expand Down Expand Up @@ -144,7 +144,7 @@ func TestReadAllDataBasic(t *testing.T) {
return bytes.Compare(i.Key, j.Key)
})

testReadAndCompare(t, ctx, kvs, memStore, memSizeLimit)
testReadAndCompare(ctx, t, kvs, memStore, memSizeLimit)
}

func TestReadAllOneFile(t *testing.T) {
Expand Down Expand Up @@ -179,5 +179,5 @@ func TestReadAllOneFile(t *testing.T) {
slices.SortFunc(kvs, func(i, j common.KvPair) int {
return bytes.Compare(i.Key, j.Key)
})
testReadAndCompare(t, ctx, kvs, memStore, memSizeLimit)
testReadAndCompare(ctx, t, kvs, memStore, memSizeLimit)
}

0 comments on commit ec40da6

Please sign in to comment.