From 0589692ed23e811a2346db0f28f94042c4508020 Mon Sep 17 00:00:00 2001 From: Robert Lin Date: Fri, 12 Jul 2024 16:36:24 -0700 Subject: [PATCH] fast-fail --- .../internal/database/subscriptions/licenses_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmd/enterprise-portal/internal/database/subscriptions/licenses_test.go b/cmd/enterprise-portal/internal/database/subscriptions/licenses_test.go index a96fc92bbf00a..c79657b7045ee 100644 --- a/cmd/enterprise-portal/internal/database/subscriptions/licenses_test.go +++ b/cmd/enterprise-portal/internal/database/subscriptions/licenses_test.go @@ -173,6 +173,12 @@ func TestLicensesStore(t *testing.T) { }) }) + // No point continuing if test licenses did not create, all tests after this + // will fail + if t.Failed() { + t.FailNow() + } + t.Run("List", func(t *testing.T) { listedLicenses, err := licenses.List(ctx, subscriptions.ListLicensesOpts{}) require.NoError(t, err)