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>
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();