Skip to content

Commit

Permalink
CI: fix usage test (#3252)
Browse files Browse the repository at this point in the history
  • Loading branch information
SandyXSD authored Feb 20, 2023
1 parent e034e69 commit b435b00
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/usage/usage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ func TestUsageReport(t *testing.T) {
// invalid addr
reportUrl = "http://127.0.0.1/report-usage"
m := meta.NewClient("memkv://", nil)
format := &meta.Format{
Name: "test",
BlockSize: 4096,
Capacity: 1 << 30,
}
_ = m.Init(format, true)
go ReportUsage(m, "unittest")
// wait for it to report to unavailable address, it should not panic.
time.Sleep(time.Millisecond * 100)
Expand Down

0 comments on commit b435b00

Please sign in to comment.