From 0e7a17de61d1a714ebee727504ff07ac8623e2b7 Mon Sep 17 00:00:00 2001 From: Mingye Chen Date: Tue, 6 Oct 2026 14:02:20 -0600 Subject: [PATCH] Fix certificate fixture comparison on Windows --- certificates_generator_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/certificates_generator_test.go b/certificates_generator_test.go index 0769052434..884978a8e2 100644 --- a/certificates_generator_test.go +++ b/certificates_generator_test.go @@ -479,6 +479,8 @@ func newTestCertPool(certPEM string) *x509.CertPool { if err != nil { t.Fatal(err) } + // Git may check out the fixture with CRLF line endings on Windows. + existing = bytes.ReplaceAll(existing, []byte("\r\n"), []byte("\n")) if !bytes.Equal(existing, buf.Bytes()) { t.Fatal("certificates_test.go is out of date; run go generate to update it") }