Test date with UTC instead of local timezone.
iso_format test uses local timezone so it can fail at certain times of the day depending on which timezone the tests are run in. Fixes bug 1139131 Change-Id: I8fe423d96c438b46a9307fe1ecf648707183ff1c
This commit is contained in:
parent
4028e74ef4
commit
6a7ae170e2
|
@ -85,7 +85,7 @@ class TestBinGlanceCacheManage(functional.FunctionalTest):
|
|||
|
||||
exitcode, out, err = execute(cmd)
|
||||
|
||||
return datetime.date.today().isoformat() in out
|
||||
return datetime.datetime.utcnow().strftime("%Y-%m-%d") in out
|
||||
|
||||
def test_no_cache_enabled(self):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue