Skip to content

Commit

Permalink
chore: make sure we get an error where we expect one
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Jun 3, 2021
1 parent dde2a73 commit dce5390
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions car_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,9 @@ func TestBadHeaders(t *testing.T) {
for _, tc := range testCases {
t.Run(tc.name, func(t *testing.T) {
err := makeCar(t, tc.hex)
if err == nil {
t.Fatal("expected error from bad header, didn't get one")
}
if tc.errStr != "" {
if err.Error() != tc.errStr {
t.Fatalf("bad error: %v", err)
Expand Down

0 comments on commit dce5390

Please sign in to comment.