[Bluetooth][Non-ACR][Fix wrong bond state in manual TC] 66/200566/3
authorSemun Lee <semun.lee@samsung.com>
Tue, 26 Feb 2019 23:44:00 +0000 (08:44 +0900)
committerSemun Lee <semun.lee@samsung.com>
Tue, 26 Feb 2019 23:50:25 +0000 (08:50 +0900)
- Reset state after testing a testcase.
- Increase timeout for finding the target device.
  When there are many BT devices, it might take more than 8 seconds.

Change-Id: I08fe1b602a4e781e7a1424cb2bf7dc9c22b3e901
Signed-off-by: Semun Lee <semun.lee@samsung.com>
tct-suite-vs/Tizen.Bluetooth.Manual.Tests/testcase/TSBondDestroyedEventArgs.cs

index 8c62967..42fa6c8 100755 (executable)
@@ -42,7 +42,7 @@ namespace Tizen.Network.Bluetooth.Tests
                 count++;
                 if (flagDeviceDiscovery)
                     break;
-                if (count == 8)
+                if (count == 15)
                     break;
             }
         }
@@ -129,9 +129,10 @@ namespace Tizen.Network.Bluetooth.Tests
             await ManualTest.WaitForConfirm();
 
             // POSTCONDITION
-            Assert.AreEqual(device.Address, address, "Bonded device address must be same as address of destroyed bond device");
             device.BondCreated -= EventHandlerBondCreated;
             device.BondDestroyed -= EventHandlerBondDestroyed;
+            flagBondCreated = false;
+            Assert.AreEqual(device.Address, address, "Bonded device address must be same as address of destroyed bond device");
         }
 
         [Test]