Skip to content

Commit 9b05448

Browse files
committed
fix error handling of time parsing
1 parent 8567549 commit 9b05448

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

events/ecr_image_action_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ func TestECRImageActionEventMarshaling(t *testing.T) {
3030
assert.Empty(t, inputEvent.Resources)
3131

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

3538
var detail = inputEvent.Detail

0 commit comments

Comments
 (0)