From c049ced44b1126f5320b465859fbd53a50af0f9d Mon Sep 17 00:00:00 2001 From: Andrew Dye Date: Wed, 27 Sep 2023 15:19:34 -0700 Subject: [PATCH] Update to EventReason Signed-off-by: Andrew Dye --- pkg/repositories/transformers/task_execution_test.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkg/repositories/transformers/task_execution_test.go b/pkg/repositories/transformers/task_execution_test.go index 235fbfcd..b196cf01 100644 --- a/pkg/repositories/transformers/task_execution_test.go +++ b/pkg/repositories/transformers/task_execution_test.go @@ -462,7 +462,7 @@ func TestCreateTaskExecutionModelBatchedEvents(t *testing.T) { }, OccurredAt: taskEventOccurredAtProto, Reason: "Task event 1", // Here for backwards compatibility - Reasons: []*event.BatchedReason{ + Reasons: []*event.EventReason{ { OccurredAt: taskEventOccurredAtProto, Reason: "Task event 1", @@ -797,6 +797,7 @@ func TestUpdateTaskExecutionModelBatchedEvents(t *testing.T) { assert.Nil(t, err) secondOccuredAt := taskEventOccurredAt.Add(time.Minute * 2) secondOccuredAtProto, err := ptypes.TimestampProto(secondOccuredAt) + assert.Nil(t, err) taskEventRequest := &admin.TaskExecutionEventRequest{ Event: &event.TaskExecutionEvent{ @@ -812,12 +813,12 @@ func TestUpdateTaskExecutionModelBatchedEvents(t *testing.T) { }, OccurredAt: occuredAtProto, Reason: "update 1", // Here for backwards compatibility - Reasons: []*event.BatchedReason{ - &event.BatchedReason{ + Reasons: []*event.EventReason{ + { OccurredAt: occuredAtProto, Reason: "update 1", }, - &event.BatchedReason{ + { OccurredAt: secondOccuredAtProto, Reason: "update 2", },