Skip to content

Commit 06dc308

Browse files
committed
syncthing test update due to golang 1.23
- tls.X509KeyPair() func changed and now populates returned cert.Leaf where before it was left nil https://pkg.go.dev/crypto/tls#X509KeyPair Signed-off-by: Tesshu Flower <[email protected]>
1 parent 59e2ab2 commit 06dc308

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

controllers/mover/syncthing/syncthing_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1894,7 +1894,8 @@ var _ = Describe("Syncthing utils", func() {
18941894
cert, err := tls.X509KeyPair(certPEM.Bytes(), certKeyPEM.Bytes())
18951895
Expect(err).ToNot(HaveOccurred())
18961896
Expect(cert).ToNot(BeNil())
1897-
Expect(cert.Leaf).To(BeNil())
1897+
// cert.Leaf is now populated with golang 1.23 (https://pkg.go.dev/crypto/tls#X509KeyPair)
1898+
Expect(cert.Leaf).NotTo(BeNil())
18981899
Expect(cert.Certificate[0]).ToNot(BeNil())
18991900
Expect(cert.PrivateKey).ToNot(BeNil())
19001901
})

0 commit comments

Comments
 (0)