Fix a bug in the test case - should use UTC timestamp.
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/9901b55f Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/9901b55f Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/9901b55f Branch: refs/heads/0.12.x Commit: 9901b55fd712d35b4223819eb027e3ba4cafbe18 Parents: 2abe754 Author: Tomaz Muraus <[email protected]> Authored: Fri Jun 21 12:16:38 2013 +0200 Committer: Tomaz Muraus <[email protected]> Committed: Fri Jun 21 12:22:24 2013 +0200 ---------------------------------------------------------------------- libcloud/test/compute/test_openstack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/9901b55f/libcloud/test/compute/test_openstack.py ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/test_openstack.py b/libcloud/test/compute/test_openstack.py index a69b998..e77aefb 100644 --- a/libcloud/test/compute/test_openstack.py +++ b/libcloud/test/compute/test_openstack.py @@ -189,7 +189,7 @@ class OpenStackAuthConnectionTests(unittest.TestCase): # No force reauth, valid / non-expired token which is about to expire in # less than AUTH_TOKEN_EXPIRES_GRACE_SECONDS - soon = datetime.datetime.now() + \ + soon = datetime.datetime.utcnow() + \ datetime.timedelta(seconds=AUTH_TOKEN_EXPIRES_GRACE_SECONDS - 1) osa.auth_token = None
