Skip to content

Commit

Permalink
fix error handling of time parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
nickryand committed Mar 29, 2023
1 parent 8567549 commit 9b05448
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions events/ecr_image_action_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ func TestECRImageActionEventMarshaling(t *testing.T) {
assert.Empty(t, inputEvent.Resources)

testTime, err := time.Parse(time.RFC3339, "2019-11-16T01:54:34Z")
if err != nil {
t.Errorf("Failed to parse time: %v", err)
}
assert.Equal(t, testTime, inputEvent.Time)

var detail = inputEvent.Detail
Expand Down

0 comments on commit 9b05448

Please sign in to comment.