Skip to content

Commit

Permalink
remove test in pipeline/service_test.go that was added by mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamHaffar committed Oct 4, 2023
1 parent 52a4b34 commit 2213d32
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions pkg/pipeline/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit 2213d32

Please sign in to comment.