Update status_test.go

Early exit test if preconditions are not met

Co-authored-by: lhchavez <lhchavez@lhchavez.com>
This commit is contained in:
michael boulton 2020-08-14 15:08:13 +01:00 committed by GitHub
parent a63936f29e
commit e22f95bd3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ func TestStatusNothing(t *testing.T) {
checkFatal(t, err)
if entryCount != 0 {
t.Error("expected no statuses in empty repo")
t.Fatal("expected no statuses in empty repo")
}
_, err = statusList.ByIndex(0)