Explore setting up invoice related to to Pacific Time (Follow-up from "Fix a couple of jobs running without VCR cassettes")
The following discussion from !9037 should be addressed:
-
@ebaque started a discussion: (+13 comments) This is an attempt to solve this test failure: https://gitlab.com/gitlab-org/customers-gitlab-com/-/jobs/5888031173
Both following commands run successfully on
main
(test run with and without VCR cassettes):env VCR=all bundle exec rspec spec/system/rails_admin/billing_account_list_invoices_spec.rb:33 bundle exec rspec spec/system/rails_admin/billing_account_list_invoices_spec.rb:33
but it fails during the daily scheduled pipeline, as shown above.
My assumption, given the error message, is that we're running this test at some specific point time in the day/night that it throws off the invoice due date by one day.
One workaround then is to try to freeze time to noon UTC.