From: JINMEI Tatuya Date: Mon, 6 May 2013 17:56:27 +0000 (-0700) Subject: [2823] avoid hardcoded constant test time data to be compared with local time X-Git-Tag: bind10-1.2.0beta1-release~474^2~2^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b308ba3bf71ccc768f302022e7ab571ff2cfbdfd;p=thirdparty%2Fkea.git [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. --- diff --git a/src/bin/stats/tests/test_utils.py b/src/bin/stats/tests/test_utils.py index 6ad9e40dab..8bb7d4ff60 100644 --- a/src/bin/stats/tests/test_utils.py +++ b/src/bin/stats/tests/test_utils.py @@ -466,7 +466,7 @@ class MyStatsHttpd(stats_httpd.StatsHttpd): 'lname': 'test-lname', 'boot_time': 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,