fix(test): preserve TLS and PDF checks across Linux runners
This commit is contained in:
@@ -335,7 +335,9 @@ public sealed class JobImportHttpTransportTests
|
||||
{
|
||||
var error = await Assert.ThrowsAsync<HttpRequestException>(request);
|
||||
Assert.IsType<AuthenticationException>(error.InnerException);
|
||||
Assert.Null(server.Request); // No HTTP data sent before TLS authenticates the origin.
|
||||
// TLS rejection can surface as EOF after the server handshake on Linux.
|
||||
// Both no read and a zero-byte read mean no HTTP data reached this origin.
|
||||
Assert.True(string.IsNullOrEmpty(server.Request));
|
||||
}
|
||||
Assert.Equal("jobs.example.test", sni);
|
||||
Assert.Null(handler.SslOptions.RemoteCertificateValidationCallback);
|
||||
|
||||
Reference in New Issue
Block a user