[Radio][Non-ACR][Change max timeout] 54/180054/2
authorHaesu Gwon <haesu.gwon@samsung.com>
Thu, 24 May 2018 11:12:54 +0000 (20:12 +0900)
committerHaesu Gwon <haesu.gwon@samsung.com>
Thu, 31 May 2018 06:27:19 +0000 (06:27 +0000)
Change-Id: I1ec105106f264d42a2e68e3d6f91ef69bc627161
Signed-off-by: Haesu Gwon <haesu.gwon@samsung.com>
tct-suite-vs/Tizen.Radio.Tests/testcase/TSRadio.cs
tct-suite-vs/Tizen.Radio.Tests/testcase/TSRadioInterruptedEventArgs.cs [changed mode: 0755->0644]
tct-suite-vs/Tizen.Radio.Tests/testcase/TSScanUpdatedEventArgs.cs [changed mode: 0755->0644]
tct-suite-vs/Tizen.Radio.Tests/testcase/support/TestBase.cs [changed mode: 0755->0644]

index a73665c..73d54ac 100644 (file)
@@ -16,8 +16,6 @@ namespace Tizen.Multimedia.Tests
     [Description("Tests Tizen.Multimedia.Radio class")]
     public class RadioTests : TestBase
     {
-        private static int _radioScanMaxTime = 10000;
-
         [Test]
         [Category("P1")]
         [Description("Test Radio Constructor - Object should not be null after initializing")]
old mode 100755 (executable)
new mode 100644 (file)
index e088866..4b57dd7
@@ -36,7 +36,7 @@ namespace Tizen.Multimedia.Tests
 
                 Radio2.Start();
 
-                RadioInterruptedEventArgs args = await eventAwaiter.GetResultAsync();
+                RadioInterruptedEventArgs args = await eventAwaiter.GetResultAsync(_radioScanMaxTime);
 
                 Assert.That(args.Reason, Is.EqualTo(RadioInterruptedReason.ResourceConflict));
             }
old mode 100755 (executable)
new mode 100644 (file)
index 8a1b042..eabe15b
@@ -34,7 +34,7 @@ namespace Tizen.Multimedia.Tests
                 Radio.ScanUpdated += eventAwaiter;
                 Radio.StartScan();
 
-                ScanUpdatedEventArgs args = await eventAwaiter.GetResultAsync();
+                ScanUpdatedEventArgs args = await eventAwaiter.GetResultAsync(_radioScanMaxTime);
 
                 Assert.That(args.Frequency,
                     Is.GreaterThanOrEqualTo(87500).And.LessThanOrEqualTo(108000));
old mode 100755 (executable)
new mode 100644 (file)
index 35a8316..b21c64e
@@ -9,6 +9,8 @@ namespace Tizen.Multimedia.Tests
         protected Radio Radio { get; private set; }
         protected Radio Radio2 { get; private set; }
 
+        protected static readonly int _radioScanMaxTime = 10000; // 10sec
+
         [SetUp]
         public void SetUpBase()
         {