summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCrae <john.mccrae@progress.com>2023-05-15 19:22:26 -0700
committerGitHub <noreply@github.com>2023-05-15 19:22:26 -0700
commit4cba41000c3185f384d42598c8f2f34829c81eed (patch)
treec0d7504e581b11ef607c91742678f5b77ee17ab2
parente763fc9e3afefe5f1ac3360fb01d6a085b8d831e (diff)
parent5689d16038ec5f543bbe092981c992ae2e0e8545 (diff)
downloadchef-4cba41000c3185f384d42598c8f2f34829c81eed.tar.gz
Merge pull request #13755 from chef/jfm/chef17-eol_update
[chef-17] 27 of X - Updating EOL Support, Again
-rw-r--r--spec/unit/client_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/unit/client_spec.rb b/spec/unit/client_spec.rb
index ba25285278..3ce9413488 100644
--- a/spec/unit/client_spec.rb
+++ b/spec/unit/client_spec.rb
@@ -321,6 +321,8 @@ describe Chef::Client do
it "does not warn when running an non-EOL release" do
stub_const("Chef::VERSION", 15)
+ # added a call to client because Time.now gets invoked multiple times during instantiation. Don't mock Time until after client initialized
+ client
allow(Time).to receive(:now).and_return(Time.new(2021, 4, 31))
expect(logger).to_not receive(:warn).with(/became end of life/)
client.warn_if_eol