Remove useless sleeps in async cancel test 66/74266/1
authorKyungwook Tak <k.tak@samsung.com>
Mon, 13 Jun 2016 11:15:59 +0000 (20:15 +0900)
committerKyungwook Tak <k.tak@samsung.com>
Mon, 13 Jun 2016 11:15:59 +0000 (20:15 +0900)
Change-Id: Icd60ef7c1e599182ea4d9d184d25febdc5961962
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
test/test-api-content-screening-async.cpp

index 2b26cd4..b7de434 100644 (file)
@@ -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
 }