[Network][Non-ACR] Fix test scenario to throw InvaildOperationException 08/198608/1
authorCheoleun Moon <chleun.moon@samsung.com>
Mon, 28 Jan 2019 04:48:52 +0000 (13:48 +0900)
committerCheoleun Moon <chleun.moon@samsung.com>
Mon, 28 Jan 2019 04:49:00 +0000 (13:49 +0900)
ForgetAPAsync() API throws InvalidOperationException when Wi-Fi is off

Change-Id: Ice07a773064985c11b2c821266c26c9c8058feef
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
tct-suite-vs/Tizen.Network.Tests/testcase/TSWiFiAP.cs

index 89cb1d8..59e33f3 100755 (executable)
@@ -575,7 +575,7 @@ namespace Tizen.Network.WiFi.Tests
                 _wifiAP = WiFiManager.GetConnectedAP();
                 Assert.IsNotNull(_wifiAP, "No WiFi connection");
 
-                await networkSetup.ForgetCurrentAP();
+                await networkSetup.DeactivateWiFi();
                 await _wifiAP.ForgetAPAsync();
                 Assert.IsTrue(false, "InvalidOperationException should be thrown");