From 1ac497dac8dea105111f421e9424ac5da90aa461 Mon Sep 17 00:00:00 2001 From: Osman Hadzic Date: Tue, 23 Apr 2024 13:45:24 +0200 Subject: [PATCH] Implement async method for Disconnection Device Refactor method `Disconnect` in `AstarteDevice` to async `Disconnect` Signed-off-by: Osman Hadzic --- AstarteDeviceSDKCSharpE2E.Tests/AstarteDeviceTest.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AstarteDeviceSDKCSharpE2E.Tests/AstarteDeviceTest.cs b/AstarteDeviceSDKCSharpE2E.Tests/AstarteDeviceTest.cs index 9e03888..b75f047 100644 --- a/AstarteDeviceSDKCSharpE2E.Tests/AstarteDeviceTest.cs +++ b/AstarteDeviceSDKCSharpE2E.Tests/AstarteDeviceTest.cs @@ -70,11 +70,11 @@ public void ConnectDeviceToAstarte() /// Test disconnect device from Astarte /// [Fact, TestPriority(9)] - public void DisconnectDeviceFromAstarte() + public async Task DisconnectDeviceFromAstarte() { Console.WriteLine("Test disconnect device to Astarte"); - astarteDevice.Disconnect(); + await astarteDevice.Disconnect(); Assert.False(astarteDevice.IsConnected()); } }