]> git.mdlowis.com Git - projs/tide.git/commitdiff
updated unit test
authorMichael D. Lowis <mike@mdlowis.com>
Fri, 16 Jun 2017 01:15:58 +0000 (21:15 -0400)
committerMichael D. Lowis <mike@mdlowis.com>
Fri, 16 Jun 2017 01:15:58 +0000 (21:15 -0400)
tests/tide.c

index 1fe0a6983ad463345ba575ca750ba46bc60cb349..80982c4fef473c20656fbe41c80a8145c4ea2626 100644 (file)
@@ -776,13 +776,13 @@ TEST_SUITE(UnitTests) {
         CHECK(verify_text(TAGS, "File is modified. Repeat action twice quickly to quit."));
     }
 
-    TEST(Quit should discard changes if quit executed twice in less than 250 ms) {
+    TEST(Quit should discard changes if quit executed twice in less than DblClickTime) {
         //IGNORE("Failing on the first quit call");
         setup_view(TAGS, "", CRLF, 0);
         setup_view(EDIT, "", CRLF, 0);
         win_buf(EDIT)->modified = true;
         ExitCode = 42;
-        usleep(251 * 1000);
+        usleep((DblClickTime+1) * 1000);
         EXPECT_EXIT {
             exec("Quit");
             CHECK(ExitCode == 42);