7200: rename error variables to meet golint suggestions.
authorradhika <radhika@curoverse.com>
Mon, 28 Sep 2015 19:55:43 +0000 (15:55 -0400)
committerradhika <radhika@curoverse.com>
Mon, 28 Sep 2015 19:55:43 +0000 (15:55 -0400)
sdk/go/keepclient/keepclient_test.go

index 588037314b8609b907e5d2adddab2c2235c6234a..3724cdf8c578182aa6b9e54c6c1ce47e897802b8 100644 (file)
@@ -1036,7 +1036,7 @@ func (s *StandaloneSuite) TestGetIndexIncomplete(c *C) {
        kc.SetServiceRoots(map[string]string{"x": ks.url}, map[string]string{ks.url: ""}, nil)
 
        _, err = kc.GetIndex("x", hash[0:3])
-       c.Check(err, Equals, IncompleteIndexError)
+       c.Check(err, Equals, ErrorIncompleteIndex)
 }
 
 func (s *StandaloneSuite) TestGetIndexWithNoSuchServer(c *C) {
@@ -1058,7 +1058,7 @@ func (s *StandaloneSuite) TestGetIndexWithNoSuchServer(c *C) {
        kc.SetServiceRoots(map[string]string{"x": ks.url}, map[string]string{ks.url: ""}, nil)
 
        _, err = kc.GetIndex("y", hash[0:3])
-       c.Check(err, Equals, NoSuchKeepServer)
+       c.Check(err, Equals, ErrorNoSuchKeepServer)
 }
 
 func (s *StandaloneSuite) TestGetIndexWithNoSuchPrefix(c *C) {