File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Tests/AWSLambdaEventsTests Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ struct S3Tests {
111111 #expect( record. eventSource == " aws:s3 " )
112112 #expect( record. awsRegion == . eu_central_1)
113113 #expect( record. eventName == " ObjectCreated:Put " )
114- #expect( record. eventTime == Date ( timeIntervalSince1970: 1_578_907_540.621 ) )
114+ #expect( record. eventTime. ISO8601Format ( ) == Date ( timeIntervalSince1970: 1_578_907_540.621 ) . ISO8601Format ( ) )
115115 #expect( record. userIdentity == S3Event . UserIdentity ( principalId: " AWS:AAAAAAAJ2MQ4YFQZ7AULJ " ) )
116116 #expect( record. requestParameters == S3Event . RequestParameters ( sourceIPAddress: " 123.123.123.123 " ) )
117117 #expect( record. responseElements. count == 2 )
@@ -135,7 +135,7 @@ struct S3Tests {
135135 #expect( record. eventSource == " aws:s3 " )
136136 #expect( record. awsRegion == . eu_central_1)
137137 #expect( record. eventName == " ObjectRemoved:DeleteMarkerCreated " )
138- #expect( record. eventTime == Date ( timeIntervalSince1970: 1_578_907_540.621 ) )
138+ #expect( record. eventTime. ISO8601Format ( ) == Date ( timeIntervalSince1970: 1_578_907_540.621 ) . ISO8601Format ( ) )
139139 #expect( record. userIdentity == S3Event . UserIdentity ( principalId: " AWS:AAAAAAAJ2MQ4YFQZ7AULJ " ) )
140140 #expect( record. requestParameters == S3Event . RequestParameters ( sourceIPAddress: " 123.123.123.123 " ) )
141141 #expect( record. responseElements. count == 2 )
You can’t perform that action at this time.
0 commit comments