From e22f95bd3c7f735b4b0cccf3db15a0b33537fd1a Mon Sep 17 00:00:00 2001 From: michael boulton <61595820+mbfr@users.noreply.github.com> Date: Fri, 14 Aug 2020 15:08:13 +0100 Subject: [PATCH] Update status_test.go Early exit test if preconditions are not met Co-authored-by: lhchavez --- status_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/status_test.go b/status_test.go index c5af3b0..d5cd530 100644 --- a/status_test.go +++ b/status_test.go @@ -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)