From 2213d3259485d811d29ff3c7a0f23488ed8e2ab8 Mon Sep 17 00:00:00 2001 From: AdamHaffar Date: Wed, 4 Oct 2023 11:45:02 +0100 Subject: [PATCH] remove test in pipeline/service_test.go that was added by mistake --- pkg/pipeline/service_test.go | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/pkg/pipeline/service_test.go b/pkg/pipeline/service_test.go index c687989f0..fad96b6d5 100644 --- a/pkg/pipeline/service_test.go +++ b/pkg/pipeline/service_test.go @@ -300,19 +300,3 @@ func TestService_UpdateInvalidConfig(t *testing.T) { is.True(err != nil) is.Equal(got, nil) } - -func TestService_Init_API_Pipeline_Exists(t *testing.T) { - is := is.New(t) - ctx := context.Background() - logger := log.Nop() - db := &inmemory.DB{} - - service := NewService(logger, db) - _, err := service.Create(ctx, uuid.NewString(), Config{Name: "test-pipeline"}, ProvisionTypeAPI) - is.NoErr(err) - - // create a new pipeline service and initialize it - service = NewService(logger, db) - err = service.Init(ctx) - is.True(err != nil) -}