Commit b308ba3b authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[2823] avoid hardcoded constant test time data to be compared with local time

it would only pass at the same time zone as that of the original developer.
parent 72604e25
......@@ -466,7 +466,7 @@ class MyStatsHttpd(stats_httpd.StatsHttpd):
'lname': 'test-lname',
time.strftime('%Y-%m-%dT%H:%M:%SZ', CONST_BASETIME),
'timestamp': 1308759248.0},
'timestamp': time.mktime(CONST_BASETIME)},
'Auth': {'queries.udp': 4, 'queries.tcp': 6,
'queries.perzone': [
{'queries.udp': 8, 'queries.tcp': 10,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment