Barak Michener 11 年 前
コミット
5e7267a751
1 ファイル変更1 行追加6 行削除
  1. 1 6
      discovery/discovery_test.go

+ 1 - 6
discovery/discovery_test.go

@@ -389,12 +389,7 @@ func (c *clientWithRetry) Create(key string, value string, ttl time.Duration) (*
 		c.failCount++
 		return nil, client.ErrTimeout
 	}
-	if len(c.rs) == 0 {
-		return &client.Response{}, nil
-	}
-	r := c.rs[0]
-	c.rs = c.rs[1:]
-	return r, nil
+	return c.clientWithResp.Create(key, value, ttl)
 }
 
 func (c *clientWithRetry) Get(key string) (*client.Response, error) {