From: Michael D. Lowis Date: Fri, 16 Jun 2017 01:15:58 +0000 (-0400) Subject: updated unit test X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=739a2bc1ff89e084e3193f518d5de870a399f8bc;p=projs%2Ftide.git updated unit test --- diff --git a/tests/tide.c b/tests/tide.c index 1fe0a69..80982c4 100644 --- a/tests/tide.c +++ b/tests/tide.c @@ -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);