Skip to content

Commit

Permalink
assert error is not nil for empty archive test
Browse files Browse the repository at this point in the history
  • Loading branch information
SwiftEngineer committed Apr 17, 2023
1 parent 8428636 commit e7b9f60
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion slug_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1042,7 +1042,10 @@ func TestUnpackEmptyName(t *testing.T) {
defer os.RemoveAll(dir)

// This crashes unless the bug is fixed
Unpack(&buf, dir)
err = Unpack(&buf, dir)
if err != nil {
t.Fatalf("err:%v", err)
}
}

// This is a reusable assertion for when packing testdata/archive-dir
Expand Down

0 comments on commit e7b9f60

Please sign in to comment.