Skip to content

Commit 6273072

Browse files
authored
Fix flaky auth_token spec caused by time zone sensitivity (#2949)
1 parent e0115af commit 6273072

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gems/aws-sdk-rds/spec/auth_token_generator_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ module RDS
6868
)
6969
expect(token).to match(/#{endpoint}\/\?Action=connect/)
7070
expect(token).to match(/DBUser=#{user_name}/)
71-
expect(token).to match(/X-Amz-Credential=akid%2F#{now.strftime('%Y%m%d')}%2F#{region}%2Frds-db%2Faws4_request/)
71+
expect(token).to match(/X-Amz-Credential=akid%2F#{now.utc.strftime('%Y%m%d')}%2F#{region}%2Frds-db%2Faws4_request/)
7272
end
7373

7474
end

0 commit comments

Comments
 (0)