[Box Backup-commit] COMMIT r3129 - box/trunk/test/common

subversion at boxbackup.org subversion at boxbackup.org
Tue Nov 6 23:58:14 GMT 2012


Author: chris
Date: 2012-11-06 23:58:14 +0000 (Tue, 06 Nov 2012)
New Revision: 3129

Modified:
   box/trunk/test/common/testcommon.cpp
Log:
Timer arguments are in milliseconds, not seconds.


Modified: box/trunk/test/common/testcommon.cpp
===================================================================
--- box/trunk/test/common/testcommon.cpp	2012-11-06 23:57:03 UTC (rev 3128)
+++ box/trunk/test/common/testcommon.cpp	2012-11-06 23:58:14 UTC (rev 3129)
@@ -332,9 +332,9 @@
 	Timers::Init();
 
 	Timer t0(0, "t0"); // should never expire
-	Timer t1(1, "t1");
-	Timer t2(2, "t2");
-	Timer t3(3, "t3");
+	Timer t1(1000, "t1");
+	Timer t2(2000, "t2");
+	Timer t3(3000, "t3");
 	
 	TEST_THAT(!t0.HasExpired());
 	TEST_THAT(!t1.HasExpired());
@@ -353,8 +353,8 @@
 	TEST_THAT(t2.HasExpired());
 	TEST_THAT(!t3.HasExpired());
 	
-	t1 = Timer(1, "t1a");
-	t2 = Timer(2, "t2a");
+	t1 = Timer(1000, "t1a");
+	t2 = Timer(2000, "t2a");
 	TEST_THAT(!t0.HasExpired());
 	TEST_THAT(!t1.HasExpired());
 	TEST_THAT(!t2.HasExpired());




More information about the Boxbackup-commit mailing list