Skip to content

Commit

Permalink
chore: lock timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Jun 3, 2022
1 parent 5b24c60 commit d8dc98c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/integration/pacticipants_documentation_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require "timecop"
require "tzinfo"

PACTICIPANT_TESTED_DOCUMENTATION_PATHS = []
PACTICIPANTS_NO_DOCUMENTATION = %w[
Expand All @@ -10,7 +11,7 @@
# Fails on Github Actions
RSpec.describe "pacticipant routes" do
before do
Timecop.freeze(Time.new(2021, 9, 1, 10, 7, 21))
Timecop.freeze(Time.new(2021, 9, 1, 10, 7, 21, TZInfo::Timezone.get("Australia/Melbourne")))
allow(PactBroker.configuration).to receive(:user_agent).and_return("Pact Broker")
allow(PactBroker.configuration).to receive(:base_urls).and_return(["http://pact-broker"])
td.create_consumer("foo")
Expand Down

0 comments on commit d8dc98c

Please sign in to comment.