test: add client health method tests

This commit is contained in:
arthurgavazza 2023-04-20 08:37:41 -03:00
parent ef23442cab
commit a15b4171d4

View File

@ -903,3 +903,19 @@ func TestRepoGC(t *testing.T) {
testClients(t, api, testF)
}
func TestHealth(t *testing.T) {
ctx := context.Background()
api := testAPI(t)
defer shutdown(api)
testF := func(t *testing.T, c Client) {
err := c.Health(ctx)
if err != nil {
t.Log(err)
t.Error("expected no errors")
}
}
testClients(t, api, testF)
}