Skip to content

Commit f563daa

Browse files
committed
update test file paths for windows
1 parent a8b4305 commit f563daa

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/Temporalio.Tests/Client/EnvConfig/ClientConfigTests.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -487,9 +487,9 @@ public void Test_Load_Profile_Tls_From_Paths()
487487
address = ""localhost:5678""
488488
[profile.default.tls]
489489
server_name = ""custom-server""
490-
server_ca_cert_path = ""{caPath}""
491-
client_cert_path = ""{certPath}""
492-
client_key_path = ""{keyPath}""
490+
server_ca_cert_path = ""{caPath.Replace('\\', '/')}""
491+
client_cert_path = ""{certPath.Replace('\\', '/')}""
492+
client_key_path = ""{keyPath.Replace('\\', '/')}""
493493
";
494494
var source = DataSource.FromUTF8String(toml);
495495
var profile = ClientEnvConfig.Profile.Load(new ClientEnvConfig.ProfileLoadOptions
@@ -500,9 +500,9 @@ public void Test_Load_Profile_Tls_From_Paths()
500500

501501
Assert.NotNull(profile.Tls);
502502
Assert.Equal("custom-server", profile.Tls.ServerName);
503-
Assert.Equal(caPath, profile.Tls.ServerRootCACert!.Path);
504-
Assert.Equal(certPath, profile.Tls.ClientCert!.Path);
505-
Assert.Equal(keyPath, profile.Tls.ClientPrivateKey!.Path);
503+
Assert.Equal(caPath.Replace('\\', '/'), profile.Tls.ServerRootCACert!.Path);
504+
Assert.Equal(certPath.Replace('\\', '/'), profile.Tls.ClientCert!.Path);
505+
Assert.Equal(keyPath.Replace('\\', '/'), profile.Tls.ClientPrivateKey!.Path);
506506

507507
var options = profile.ToClientConnectionOptions();
508508
Assert.NotNull(options.Tls);

0 commit comments

Comments
 (0)