Updated Branches: refs/heads/0.12.x 2abe75454 -> b5f4a42ac refs/heads/trunk 3d83adbdc -> 49524642e
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/191392e1 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/191392e1 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/191392e1 Branch: refs/heads/trunk Commit: 191392e1b4d9380b7593c21561f07a30ff3578b9 Parents: 3d83adb Author: Tomaz Muraus <[email protected]> Authored: Fri Jun 21 12:16:38 2013 +0200 Committer: Tomaz Muraus <[email protected]> Committed: Fri Jun 21 12:16:38 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/191392e1/libcloud/test/compute/test_openstack.py ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/test_openstack.py b/libcloud/test/compute/test_openstack.py index 1d7cbcf..16f081a 100644 --- a/libcloud/test/compute/test_openstack.py +++ b/libcloud/test/compute/test_openstack.py @@ -194,7 +194,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
