mirror of
https://opendev.org/openstack/python-heatclient.git
synced 2026-01-16 23:00:35 +00:00
Merge "Make tests pass after 2038"
This commit is contained in:
commit
cf563b6359
1 changed files with 2 additions and 1 deletions
|
|
@ -17,6 +17,7 @@ import swiftclient.client
|
|||
import testscenarios
|
||||
import testtools
|
||||
from testtools import matchers
|
||||
import time
|
||||
|
||||
from heatclient.common import deployment_utils
|
||||
from heatclient import exc
|
||||
|
|
@ -297,7 +298,7 @@ class TempURLSignalTest(testtools.TestCase):
|
|||
self.assertThat(url, matchers.MatchesRegex(regexp))
|
||||
|
||||
timeout = int(url.split('=')[-1])
|
||||
self.assertTrue(timeout < 2147483647)
|
||||
self.assertTrue(timeout < time.time() + 2*365*24*60*60)
|
||||
|
||||
def test_get_temp_url_no_account_key(self):
|
||||
swift_client = mock.MagicMock()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue