Skip to content

Commit

Permalink
add another test
Browse files Browse the repository at this point in the history
Signed-off-by: lance6716 <[email protected]>
  • Loading branch information
lance6716 committed Dec 28, 2023
1 parent 638070f commit 0306cec
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions br/pkg/lightning/backend/local/local_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2386,4 +2386,9 @@ func TestCheckDiskAvail(t *testing.T) {
ctx := context.Background()
err := checkDiskAvail(ctx, store)
require.NoError(t, err)

// pd may return this StoreInfo before the store reports heartbeat
store = &http.StoreInfo{Status: http.StoreStatus{LeaderWeight: 1.0, RegionWeight: 1.0}}
err = checkDiskAvail(ctx, store)
require.NoError(t, err)
}

0 comments on commit 0306cec

Please sign in to comment.