diff options
author | bep <bjorn.erik.pedersen@gmail.com> | 2015-04-03 21:20:27 +0200 |
---|---|---|
committer | bep <bjorn.erik.pedersen@gmail.com> | 2015-04-03 21:20:25 +0200 |
commit | bea42218b69b10f5fe42a974816d45481e2d73f5 (patch) | |
tree | 5373ab862a1349165c4e17be6778e1366c5ad9e6 /helpers | |
parent | bea5feb34d5944e6dfc87dd292a85d100573397a (diff) |
helpers: fix some go vet errors
Diffstat (limited to 'helpers')
-rw-r--r-- | helpers/general_test.go | 2 | ||||
-rw-r--r-- | helpers/path_test.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/helpers/general_test.go b/helpers/general_test.go index 26aba6701..144f7a312 100644 --- a/helpers/general_test.go +++ b/helpers/general_test.go @@ -263,7 +263,7 @@ func TestSeq(t *testing.T) { if b, ok := this.expect.(bool); ok && !b { if err == nil { - t.Errorf("[%d] TestSeq didn't return an expected error %s", i) + t.Errorf("[%d] TestSeq didn't return an expected error", i) } } else { if err != nil { diff --git a/helpers/path_test.go b/helpers/path_test.go index f0c8ef6e2..a6da1a01a 100644 --- a/helpers/path_test.go +++ b/helpers/path_test.go @@ -550,7 +550,7 @@ func TestRemoveSubpaths(t *testing.T) { got := RemoveSubpaths([]string{"hello", "hello/world", "foo/bar", ""}) expect := []string{"hello", "foo/bar"} if !reflect.DeepEqual(got, expect) { - t.Errorf("Test %d failed. Expected %q but got %q", expect, got) + t.Errorf("Expected %q but got %q", expect, got) } } |