Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
Update to EventReason
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Dye <andrewwdye@gmail.com>
  • Loading branch information
andrewwdye committed Sep 27, 2023
1 parent fd50f54 commit c049ced
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pkg/repositories/transformers/task_execution_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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{
Expand All @@ -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",
},
Expand Down

0 comments on commit c049ced

Please sign in to comment.