[tv][content] fix DF250102-00918, timing issue for deleted file onadd cb in scanfile 70/317770/2
authorchen <chen89.chen@samsung.com>
Tue, 7 Jan 2025 12:29:20 +0000 (20:29 +0800)
committerchen <chen89.chen@samsung.com>
Tue, 7 Jan 2025 12:35:39 +0000 (20:35 +0800)
Change-Id: I959ec1b25721e9e0ac5d646d61c1cd9fdec64962
Signed-off-by: chen <chen89.chen@samsung.com>
common/tct-content-tizen-tests/content/support/content_common.js

index c29930d3660550c6085ff6193ff0e7c43c2c6390..e3ee721a5e8cdced30e7bec636da395600d92005 100755 (executable)
@@ -127,7 +127,13 @@ function prepare_file_for_scan(addedImagePath, onCopySuccess) {
     });
 
     var onDeleteError = t.step_func(function () {
-        copyContentFile();
+        tizen.content.scanFile("file://" + addedImagePath, function (){
+            copyContentFile();
+        },
+        function (error){
+            console.log("Failed to scan file : " + error.message)
+            copyContentFile();
+        });
     });
 
     tizen.filesystem.resolve(