From e6983d8399ef7ad54bb850208b167bb174209cad Mon Sep 17 00:00:00 2001 From: Mathias Fredriksson Date: Mon, 17 Mar 2025 12:15:52 +0200 Subject: [PATCH] test(cryptorand): disable error tests on Go 1.24 (#16955) Testing `rand.Reader.Read` for errors will panic (not recoverable) in Go 1.24 and later. --- cryptorand/errors_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cryptorand/errors_test.go b/cryptorand/errors_test.go index 6abc214387..cafd2156db 100644 --- a/cryptorand/errors_test.go +++ b/cryptorand/errors_test.go @@ -1,3 +1,7 @@ +//go:build !go1.24 + +// Testing `rand.Reader.Read` for errors will panic in Go 1.24 and later. + package cryptorand_test import (