Fixed detection of the etcd connection status
[multicloud/k8s.git] / src / k8splugin / internal / db / etcd_testing.go
index 2f62d36..4022d30 100644 (file)
@@ -24,6 +24,10 @@ type MockEtcdClient struct {
        Err   error
 }
 
+func (c *MockEtcdClient) HealthCheck() error {
+       return c.Err
+}
+
 func (c *MockEtcdClient) Put(key, value string) error {
        if c.Items == nil {
                c.Items = make(map[string]string)