[TTS][Non-ACR] Reduce check rate for service state change 46/281646/1
authorSuyeon Hwang <stom.hwang@samsung.com>
Tue, 20 Sep 2022 07:19:26 +0000 (16:19 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Tue, 20 Sep 2022 07:19:26 +0000 (16:19 +0900)
Change-Id: Ic69a61e2bea9282d8ee20aaf99b45a9872f2d4cf
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
tct-suite-vs/Tizen.Tts.Tests/support/TtsWrapper.cs

index 4c7810a..ac72c0d 100755 (executable)
@@ -70,6 +70,8 @@ namespace Tizen.Uix.Tts.Tests
         internal async Task WaitServiceStateFlag(int times)
         {
             int count = 0;
+            int timeout = times * 100;
+
             while (true)
             {
                 count++;
@@ -79,13 +81,13 @@ namespace Tizen.Uix.Tts.Tests
                     break;
                 }
 
-                if (count == times * 10)
+                if (count == timeout)
                 {
                     TtsHelper.PrintLog(Type.DLogAndlogUtil, "count " + count + " expired");
                     break;
                 }
 
-                await Task.Delay(100);
+                await Task.Delay(10);
             }
         }