From 1ae8705b90e546379665bc8163dcf0c267fb6a23 Mon Sep 17 00:00:00 2001 From: Thomas Walpole Date: Fri, 28 Jun 2019 00:32:12 -0700 Subject: [PATCH] Update cookie expiration in test to avaid timezone issues --- rb/spec/integration/selenium/webdriver/manager_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rb/spec/integration/selenium/webdriver/manager_spec.rb b/rb/spec/integration/selenium/webdriver/manager_spec.rb index 373f89bca0b61..b0c6762acbde7 100644 --- a/rb/spec/integration/selenium/webdriver/manager_spec.rb +++ b/rb/spec/integration/selenium/webdriver/manager_spec.rb @@ -92,7 +92,7 @@ module WebDriver it 'should use DateTime for expires' do driver.navigate.to url_for('xhtmlTest.html') - expected = (Date.today + 1).to_datetime + expected = (Date.today + 2).to_datetime driver.manage.add_cookie name: 'foo', value: 'bar', expires: expected