summaryrefslogtreecommitdiff
path: root/spec/unit/http/authenticator_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/http/authenticator_spec.rb')
-rw-r--r--spec/unit/http/authenticator_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/unit/http/authenticator_spec.rb b/spec/unit/http/authenticator_spec.rb
index a1b67610c5..bbd952b436 100644
--- a/spec/unit/http/authenticator_spec.rb
+++ b/spec/unit/http/authenticator_spec.rb
@@ -32,7 +32,8 @@ describe Chef::HTTP::Authenticator, :windows_only do
Chef::Config[:node_name] = node_name
cert_name = "chef-#{node_name}"
d = Time.now
- end_date = Time.new(d.year, d.month + 3, d.day, d.hour, d.min, d.sec).utc.iso8601
+ end_date = Time.new + (3600 * 24 * 90)
+ end_date = end_date.utc.iso8601
my_client = Chef::Client.new
pfx = my_client.generate_pfx_package(cert_name, end_date)