From b2d4ceab03fe1b700024f6ec1084898e54ffa0ea Mon Sep 17 00:00:00 2001 From: Kyungwook Tak Date: Mon, 13 Jun 2016 20:15:59 +0900 Subject: [PATCH] Remove useless sleeps in async cancel test Change-Id: Icd60ef7c1e599182ea4d9d184d25febdc5961962 Signed-off-by: Kyungwook Tak --- test/test-api-content-screening-async.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/test/test-api-content-screening-async.cpp b/test/test-api-content-screening-async.cpp index 2b26cd4..b7de434 100644 --- a/test/test-api-content-screening-async.cpp +++ b/test/test-api-content-screening-async.cpp @@ -609,17 +609,10 @@ BOOST_AUTO_TEST_CASE(scan_cancel_positiive) Test::touch_file(TEST_FILE_HIGH); ASSERT_SUCCESS(csr_cs_scan_dirs_async(context, dirs, 1, &testCtx)); - - // TODO: check the reason - // Without sleep, sometimes the first run of this TC fails with core dump. - std::this_thread::sleep_for(std::chrono::milliseconds(100)); - ASSERT_SUCCESS(csr_cs_cancel_scanning(context)); - std::this_thread::sleep_for(std::chrono::milliseconds(100)); - //scanned, detected, completed, cancelled, error - ASSERT_CALLBACK(testCtx, -1, 0, 0, 1, 0); + ASSERT_CALLBACK(testCtx, -1, -1, 0, 1, 0); EXCEPTION_GUARD_END } -- 2.7.4