Skip to content

Commit 05612e1

Browse files
committed
Small fixes
1 parent cfc32f1 commit 05612e1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/MongoDB.Driver.Tests/Specifications/socks5-support/Socks5SupportProseTests.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
using System.Security.Cryptography.X509Certificates;
2020
using System.Threading.Tasks;
2121
using MongoDB.Bson;
22-
using MongoDB.Driver.Core.Clusters;
2322
using MongoDB.Driver.Core.Misc;
2423
using MongoDB.Driver.Core.TestHelpers.Logging;
2524
using MongoDB.Driver.Core.TestHelpers.XunitExtensions;
@@ -54,7 +53,7 @@ public static IEnumerable<object[]> GetTestCombinations()
5453
{
5554
foreach (var isAsync in new[] { true, false })
5655
{
57-
foreach (var useTls in new[] { false })
56+
foreach (var useTls in new[] { false }) //TODO This needs to be changed afterwards
5857
{
5958
yield return [connectionString, expectedResult, useTls, isAsync];
6059
}
@@ -66,13 +65,17 @@ public static IEnumerable<object[]> GetTestCombinations()
6665
[MemberData(nameof(GetTestCombinations))]
6766
public async Task TestConnectionStrings(string connectionString, bool expectedResult, bool useTls, bool async)
6867
{
68+
RequireServer.Check().Tls(useTls);
6969
RequireEnvironment.Check().EnvironmentVariable("SOCKS5_PROXY_SERVERS_ENABLED");
7070

7171
//Convert the hosts to a format that can be used in the connection string (host:port), and join them into a string.
7272
var hosts = CoreTestConfiguration.ConnectionString.Hosts;
7373
var stringHosts = string.Join(",", hosts.Select(h => h.GetHostAndPort()).Select( h => $"{h.Host}:{h.Port}"));
74+
testOutputHelper.WriteLine($"ConnectionString: {CoreTestConfiguration.ConnectionString}");
75+
testOutputHelper.WriteLine($"StringHosts: {stringHosts}");
7476

7577
connectionString = connectionString.Replace("<mappedhost>", "localhost:12345").Replace("<replicaset>", stringHosts);
78+
testOutputHelper.WriteLine($"Modified ConnectionString: {connectionString}");
7679
var mongoClientSettings = MongoClientSettings.FromConnectionString(connectionString);
7780

7881
if (useTls)

0 commit comments

Comments
 (0)