Skip to content

Commit

Permalink
Don't need to t.Fail after t.Error
Browse files Browse the repository at this point in the history
  • Loading branch information
dustin committed Aug 14, 2015
1 parent 75939f5 commit 2efc9fe
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions bytes_test.go
Expand Up @@ -193,11 +193,9 @@ func TestPointer(t *testing.T) {
}
if err != nil {
t.Errorf("Got an error on key %v: %v", test.path, err)
t.Fail()
} else if !reflect.DeepEqual(val, test.exp) {
t.Errorf("On %#v, expected %+v (%T), got %+v (%T)",
test.path, test.exp, test.exp, val, val)
t.Fail()
} else {
t.Logf("Success - got %s for %#v", got, test.path)
}
Expand All @@ -222,12 +220,10 @@ func TestPointerCoder(t *testing.T) {
if k != encoded {
t.Errorf("Expected to encode %#v as %#v, got %#v",
v, k, encoded)
t.Fail()
}
if !arreq(v, parsed) {
t.Errorf("Expected to decode %#v as %#v, got %#v",
k, v, parsed)
t.Fail()
}
}
}
Expand Down
1 change: 0 additions & 1 deletion map_test.go
Expand Up @@ -60,7 +60,6 @@ func TestPaths(t *testing.T) {
if !reflect.DeepEqual(got, test.exp) {
t.Errorf("On %v, expected %+v (%T), got %+v (%T)",
test.path, test.exp, test.exp, got, got)
t.Fail()
} else {
t.Logf("Success - got %v for %v", got, test.path)
}
Expand Down

0 comments on commit 2efc9fe

Please sign in to comment.