@@ -487,9 +487,9 @@ public void Test_Load_Profile_Tls_From_Paths()
487487address = ""localhost:5678""
488488[profile.default.tls]
489489server_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