From 27d7fc505824dbd17fe4d1aa4868238342ac4315 Mon Sep 17 00:00:00 2001 From: himanshujha1702 Date: Tue, 27 Jun 2023 18:20:31 +0530 Subject: [PATCH] chore: refactored failing test case --- pkg/pipeline/PipelineBuilder_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/pipeline/PipelineBuilder_test.go b/pkg/pipeline/PipelineBuilder_test.go index 9304544a49..1b6ff87632 100644 --- a/pkg/pipeline/PipelineBuilder_test.go +++ b/pkg/pipeline/PipelineBuilder_test.go @@ -36,7 +36,8 @@ func TestPipelineBuilderImpl_validateDeploymentAppType(t *testing.T) { attributesRepoMock.On("FindByKey", mock.Anything).Return(mockDeploymentConfigConfig, mockError) err := impl.validateDeploymentAppType(pipeline) - assert.Nil(t, err) + apiErr, _ := err.(*util.ApiError) + assert.Equal(t, http.StatusInternalServerError, apiErr.HttpStatusCode) }) t.Run("AllDeploymentConfigTrue", func(t *testing.T) {