[Pkg-mozext-commits] [perspectives-extension] 24/44: Unit tests - Replace multiple time calls with existing time variable
David Prévot
taffit at moszumanska.debian.org
Sat Jun 6 02:55:28 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository perspectives-extension.
commit 798607040c4999127aef8503c8feeefd8546a4ba
Author: Dave Schaefer <dave.schaefer at gmail.com>
Date: Wed Nov 5 21:20:26 2014 -0700
Unit tests - Replace multiple time calls with existing time variable
No need to query the current time more than once here
---
test/test.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/test.html b/test/test.html
index 318be60..2fc63a2 100644
--- a/test/test.html
+++ b/test/test.html
@@ -248,8 +248,8 @@ function client_sanity() {
var day_first_seen = 4; // days ago
var duration = 2; // days
var day_last_seen = day_first_seen - duration;
- var old_start = Pers_util.get_unix_time() - Pers_util.DAY2SEC(day_first_seen);
- var old_end = Pers_util.get_unix_time() - Pers_util.DAY2SEC(day_last_seen);
+ var old_start = curtime - Pers_util.DAY2SEC(day_first_seen);
+ var old_end = curtime - Pers_util.DAY2SEC(day_last_seen);
var second_result_list = [
{ "server": "test1:8080",
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/perspectives-extension.git
More information about the Pkg-mozext-commits
mailing list