Bug Fix: Restore health check error (#75508)

This commit is contained in:
Andres Martinez Gotor
2023-09-27 09:44:43 +02:00
committed by GitHub
parent d24dc7f156
commit af8a46adbb
3 changed files with 8 additions and 2 deletions

View File

@ -188,7 +188,7 @@ func (s *Service) CheckHealth(ctx context.Context, req *backend.CheckHealthReque
return nil, err
}
return nil, plugins.ErrPluginDownstreamErrorBase.Errorf("client: failed to check health: %w", err)
return nil, plugins.ErrPluginHealthCheck.Errorf("client: failed to check health: %w", err)
}
return resp, nil

View File

@ -97,7 +97,7 @@ func TestCheckHealth(t *testing.T) {
},
{
err: errors.New("surprise surprise"),
expectedError: plugins.ErrPluginDownstreamErrorBase,
expectedError: plugins.ErrPluginHealthCheck,
},
}