Skip to content

Commit

Permalink
refactor: golint.
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed May 14, 2017
1 parent 92e0277 commit c6c98da
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions integration/basic_test.go
Expand Up @@ -31,7 +31,7 @@ func (s *SimpleSuite) TestInvalidConfigShouldFail(c *check.C) {
actual := b.String()

if !strings.Contains(actual, expected) {
return fmt.Errorf("Got %s, wanted %s.", actual, expected)
return fmt.Errorf("Got %s, wanted %s", actual, expected)
}

return nil
Expand Down Expand Up @@ -79,7 +79,7 @@ func (s *SimpleSuite) TestDefaultEntryPoints(c *check.C) {
actual := b.String()

if !strings.Contains(actual, expected) {
return fmt.Errorf("Got %s, wanted %s.", actual, expected)
return fmt.Errorf("Got %s, wanted %s", actual, expected)
}

return nil
Expand All @@ -104,10 +104,10 @@ func (s *SimpleSuite) TestPrintHelp(c *check.C) {
actual := b.String()

if strings.Contains(actual, notExpected) {
return fmt.Errorf("Got %s.", actual)
return fmt.Errorf("Got %s", actual)
}
if !strings.Contains(actual, expected) {
return fmt.Errorf("Got %s, wanted %s.", actual, expected)
return fmt.Errorf("Got %s, wanted %s", actual, expected)
}

return nil
Expand Down
4 changes: 2 additions & 2 deletions integration/consul_test.go
Expand Up @@ -419,7 +419,7 @@ func (s *ConsulSuite) TestDatastore(c *check.C) {
expectedValue := "foo"
test1 := datastore1.Get().(*TestStruct)
if test1.String != expectedValue {
return fmt.Errorf("Got %s, wanted %s.", test1.String, expectedValue)
return fmt.Errorf("Got %s, wanted %s", test1.String, expectedValue)
}
return nil
})
Expand All @@ -440,7 +440,7 @@ func (s *ConsulSuite) TestDatastore(c *check.C) {
expectedValue := "bar"
test1 := datastore1.Get().(*TestStruct)
if test1.String != expectedValue {
return fmt.Errorf("Got %s, wanted %s.", test1.String, expectedValue)
return fmt.Errorf("Got %s, wanted %s", test1.String, expectedValue)
}
return nil
})
Expand Down

0 comments on commit c6c98da

Please sign in to comment.