From 739a2bc1ff89e084e3193f518d5de870a399f8bc Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Thu, 15 Jun 2017 21:15:58 -0400 Subject: [PATCH] updated unit test --- tests/tide.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.49.0