Skip to content

Commit

Permalink
Disable this test until an alternative is found
Browse files Browse the repository at this point in the history
  • Loading branch information
pglombardo committed Jan 20, 2025
1 parent 44ca484 commit 9f68d67
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions Tests/HiveMQtt.Test/HiveMQClient/TLSTest.cs
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

View workflow job for this annotation

GitHub Actions / pipeline-ubuntu-latest-dotnet-6.0.x

Single line comment should begin with a space.

Check warning on line 22 in Tests/HiveMQtt.Test/HiveMQClient/TLSTest.cs

View workflow job for this annotation

GitHub Actions / pipeline-ubuntu-latest-dotnet-6.0.x

Single line comment should begin with a space.

Check warning on line 22 in Tests/HiveMQtt.Test/HiveMQClient/TLSTest.cs

View workflow job for this annotation

GitHub Actions / pipeline-ubuntu-latest-dotnet-7.0.x

Check warning on line 22 in Tests/HiveMQtt.Test/HiveMQClient/TLSTest.cs

View workflow job for this annotation

GitHub Actions / pipeline-ubuntu-latest-dotnet-7.0.x

Check warning on line 22 in Tests/HiveMQtt.Test/HiveMQClient/TLSTest.cs

View workflow job for this annotation

GitHub Actions / pipeline-ubuntu-latest-dotnet-8.0.x


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

View workflow job for this annotation

GitHub Actions / pipeline-ubuntu-latest-dotnet-6.0.x

Single line comment should begin with a space.

Check warning on line 24 in Tests/HiveMQtt.Test/HiveMQClient/TLSTest.cs

View workflow job for this annotation

GitHub Actions / pipeline-ubuntu-latest-dotnet-6.0.x

Single line comment should begin with a space.

Check warning on line 24 in Tests/HiveMQtt.Test/HiveMQClient/TLSTest.cs

View workflow job for this annotation

GitHub Actions / pipeline-ubuntu-latest-dotnet-7.0.x

Check warning on line 24 in Tests/HiveMQtt.Test/HiveMQClient/TLSTest.cs

View workflow job for this annotation

GitHub Actions / pipeline-ubuntu-latest-dotnet-7.0.x

Check warning on line 24 in Tests/HiveMQtt.Test/HiveMQClient/TLSTest.cs

View workflow job for this annotation

GitHub Actions / pipeline-ubuntu-latest-dotnet-8.0.x


Assert.Equal(ConnAckReasonCode.Success, connectResult.ReasonCode);
// Assert.Equal(ConnAckReasonCode.Success, connectResult.ReasonCode);

Check warning on line 26 in Tests/HiveMQtt.Test/HiveMQClient/TLSTest.cs

View workflow job for this annotation

GitHub Actions / pipeline-ubuntu-latest-dotnet-6.0.x

Single line comment should begin with a space.

Check warning on line 26 in Tests/HiveMQtt.Test/HiveMQClient/TLSTest.cs

View workflow job for this annotation

GitHub Actions / pipeline-ubuntu-latest-dotnet-6.0.x

Single line comment should begin with a space.

Check warning on line 26 in Tests/HiveMQtt.Test/HiveMQClient/TLSTest.cs

View workflow job for this annotation

GitHub Actions / pipeline-ubuntu-latest-dotnet-7.0.x

Check warning on line 26 in Tests/HiveMQtt.Test/HiveMQClient/TLSTest.cs

View workflow job for this annotation

GitHub Actions / pipeline-ubuntu-latest-dotnet-7.0.x

Check warning on line 26 in Tests/HiveMQtt.Test/HiveMQClient/TLSTest.cs

View workflow job for this annotation

GitHub Actions / pipeline-ubuntu-latest-dotnet-8.0.x


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

View workflow job for this annotation

GitHub Actions / pipeline-ubuntu-latest-dotnet-6.0.x

Single line comment should begin with a space.

Check warning on line 28 in Tests/HiveMQtt.Test/HiveMQClient/TLSTest.cs

View workflow job for this annotation

GitHub Actions / pipeline-ubuntu-latest-dotnet-6.0.x

Single line comment should begin with a space.

Check warning on line 28 in Tests/HiveMQtt.Test/HiveMQClient/TLSTest.cs

View workflow job for this annotation

GitHub Actions / pipeline-ubuntu-latest-dotnet-7.0.x

// Assert.True(disconnectResult);
// }
// }

0 comments on commit 9f68d67

Please sign in to comment.