[WiFi][Non-ACR][Check if task is in faulted status] 72/202972/1
authorCheoleun Moon <chleun.moon@samsung.com>
Mon, 8 Apr 2019 08:11:54 +0000 (17:11 +0900)
committerCheoleun Moon <chleun.moon@samsung.com>
Mon, 8 Apr 2019 08:11:59 +0000 (17:11 +0900)
When an Error is delivered to WiFiAP.ConnectWpsWithoutSsidAsync() from
native capi, it calls task.SetException().
As a result, the status of the task is set to Faulted or Canceled.

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

index 28afdb8ad495b622e4ba782785444723477d6bc9..ae8f011ec1e724a195b9fb01a990a75f129fe029 100755 (executable)
@@ -728,7 +728,8 @@ namespace Tizen.Network.WiFi.Tests
                 WiFiAP.CancelWps();
                 await Task.Delay(5000);
 
-                Assert.IsTrue(task.IsCanceled, "ConnectWpsWithoutSsidAsync() isn't cancelled");
+                Log.Info(Globals.LogTag, "task status: " + task.Status);
+                Assert.IsTrue(task.IsCanceled || task.IsFaulted, "ConnectWpsWithoutSsidAsync() isn't cancelled");
 
                 // Postcondition
                 await setUp();