Skip to content

Commit

Permalink
Implement async method for Disconnection Device
Browse files Browse the repository at this point in the history
Refactor method `Disconnect` in `AstarteDevice`
to async `Disconnect`

Signed-off-by: Osman Hadzic <osman.hadzic@secomind.com>
  • Loading branch information
osmanhadzic committed Apr 24, 2024
1 parent 000c987 commit 1ac497d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AstarteDeviceSDKCSharpE2E.Tests/AstarteDeviceTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ public void ConnectDeviceToAstarte()
/// Test disconnect device from Astarte
/// </summary>
[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());
}
}

0 comments on commit 1ac497d

Please sign in to comment.