Skip to content

Commit

Permalink
Fixes #37533 - Stub date in test so it doesn't rely on real system cl…
Browse files Browse the repository at this point in the history
…ock (#11016)
  • Loading branch information
jeremylenz authored Jun 5, 2024
1 parent 388d17d commit 70eacf6
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,7 @@ def test_regenerate_indentity_certificates
Katello::Host::SubscriptionFacet.any_instance.stubs(:update_from_consumer_attributes)
::Host::Managed.any_instance.stubs(:refresh_global_status!)
assert_equal ::Katello::RhelLifecycleStatus::UNKNOWN, @host.get_status(::Katello::RhelLifecycleStatus).status
Date.expects(:today).returns(Date.new(2024, 5, 30))
facts = {
"distribution.id" => "Ootpa",
"distribution::version" => "8.6",
Expand Down

0 comments on commit 70eacf6

Please sign in to comment.