-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
namespace HiveMQtt.Test.HiveMQClient; | ||
// namespace HiveMQtt.Test.HiveMQClient; | ||
|
||
using System.Threading.Tasks; | ||
using HiveMQtt.Client; | ||
using HiveMQtt.Client.Options; | ||
using HiveMQtt.MQTT5.ReasonCodes; | ||
using Xunit; | ||
// using System.Threading.Tasks; | ||
// using HiveMQtt.Client; | ||
// using HiveMQtt.Client.Options; | ||
// using HiveMQtt.MQTT5.ReasonCodes; | ||
// using Xunit; | ||
|
||
public class TLSTest | ||
{ | ||
#pragma warning disable xUnit1004 | ||
[Fact(Skip = "Github CI failing: Need to be run manually")] | ||
#pragma warning restore xUnit1004 | ||
public async Task Public_Broker_TLS_Async() | ||
{ | ||
var options = new HiveMQClientOptions | ||
{ | ||
Host = "broker.hivemq.com", | ||
Port = 8883, | ||
}; | ||
// public class TLSTest | ||
// { | ||
// #pragma warning disable xUnit1004 | ||
// [Fact(Skip = "Github CI failing: Need to be run manually")] | ||
// #pragma warning restore xUnit1004 | ||
// public async Task Public_Broker_TLS_Async() | ||
// { | ||
// var options = new HiveMQClientOptions | ||
// { | ||
// Host = "broker.hivemq.com", | ||
// Port = 8883, | ||
// }; | ||
|
||
var client = new HiveMQClient(options); | ||
// var client = new HiveMQClient(options); | ||
Check warning on line 22 in Tests/HiveMQtt.Test/HiveMQClient/TLSTest.cs
|
||
|
||
var connectResult = await client.ConnectAsync().ConfigureAwait(false); | ||
// var connectResult = await client.ConnectAsync().ConfigureAwait(false); | ||
Check warning on line 24 in Tests/HiveMQtt.Test/HiveMQClient/TLSTest.cs
|
||
|
||
Assert.Equal(ConnAckReasonCode.Success, connectResult.ReasonCode); | ||
// Assert.Equal(ConnAckReasonCode.Success, connectResult.ReasonCode); | ||
Check warning on line 26 in Tests/HiveMQtt.Test/HiveMQClient/TLSTest.cs
|
||
|
||
var disconnectResult = await client.DisconnectAsync().ConfigureAwait(false); | ||
Assert.True(disconnectResult); | ||
} | ||
} | ||
// var disconnectResult = await client.DisconnectAsync().ConfigureAwait(false); | ||
Check warning on line 28 in Tests/HiveMQtt.Test/HiveMQClient/TLSTest.cs
|
||
// Assert.True(disconnectResult); | ||
// } | ||
// } |