Skip to content

Fix date-dependent failing spec in export_service_spec.rb

Stan Hu requested to merge sh-fix-export-service-spec into master

What does this MR do and why?

The test used a hard-coded 2021-01-01 as an expiration date, but once the current date reaches that date this is no longer valid since it's not in the past. We fix this by using a date always one month from the current date.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Stan Hu

Merge request reports