diff --git a/argo/providers/vai/eventing_server.go b/argo/providers/vai/eventing_server.go index 35c55ad23..eada40162 100644 --- a/argo/providers/vai/eventing_server.go +++ b/argo/providers/vai/eventing_server.go @@ -105,7 +105,7 @@ func (es *VaiEventingServer) runCompletionEventForRun(ctx context.Context, run V } func modelServingArtifactsForJob(job *aiplatformpb.PipelineJob) []common.Artifact { - var servingModelArtifacts []common.Artifact + servingModelArtifacts := []common.Artifact{} for _, task := range job.GetJobDetail().GetTaskDetails() { for name, output := range task.GetOutputs() { for _, artifact := range output.GetArtifacts() { diff --git a/argo/providers/vai/vai_eventing_server_unit_test.go b/argo/providers/vai/vai_eventing_server_unit_test.go index 43b6a0cae..34214604c 100644 --- a/argo/providers/vai/vai_eventing_server_unit_test.go +++ b/argo/providers/vai/vai_eventing_server_unit_test.go @@ -323,7 +323,7 @@ var _ = Context("VaiEventingServer", func() { }, }, }, - })).To(BeEmpty()) + })).To(Equal([]common.Artifact{})) }) }) @@ -346,7 +346,7 @@ var _ = Context("VaiEventingServer", func() { }, }, }, - })).To(BeEmpty()) + })).To(Equal([]common.Artifact{})) }) }) @@ -369,7 +369,7 @@ var _ = Context("VaiEventingServer", func() { }, }, }, - })).To(BeEmpty()) + })).To(Equal([]common.Artifact{})) }) }) @@ -392,7 +392,7 @@ var _ = Context("VaiEventingServer", func() { }, }, }, - })).To(BeEmpty()) + })).To(Equal([]common.Artifact{})) }) }) @@ -415,7 +415,7 @@ var _ = Context("VaiEventingServer", func() { }, }, }, - })).To(BeEmpty()) + })).To(Equal([]common.Artifact{})) }) }) @@ -438,7 +438,7 @@ var _ = Context("VaiEventingServer", func() { }, }, }, - })).To(BeEmpty()) + })).To(Equal([]common.Artifact{})) }) })