summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCrae <john.mccrae@progress.com>2023-05-16 11:06:17 -0700
committerGitHub <noreply@github.com>2023-05-16 11:06:17 -0700
commit5266f9c3676a28a8cea6f364bfce8afceaf3d53a (patch)
tree3946fe0deacf9cbabff533b8b6f6e0dfeb815c2c
parent1b0212c25ab5ca75b8708baed28396256c89b5cf (diff)
parent6b975112ed3c58aa31036404c083ae3291c113b0 (diff)
downloadchef-5266f9c3676a28a8cea6f364bfce8afceaf3d53a.tar.gz
Merge pull request #13756 from chef/jfm/chef17-eol_update
[chef-17] 27 of X - Tweaking EOL Support
-rw-r--r--spec/unit/client_spec.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/spec/unit/client_spec.rb b/spec/unit/client_spec.rb
index 3ce9413488..320d6d57d4 100644
--- a/spec/unit/client_spec.rb
+++ b/spec/unit/client_spec.rb
@@ -321,9 +321,7 @@ 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))
+ allow(Time).to receive(:now).and_return(Time.new(2021, 4, 30))
expect(logger).to_not receive(:warn).with(/became end of life/)
client.warn_if_eol
end