From a3ec4ab9791282f0d68e0e0b1b33986f5d3820ee Mon Sep 17 00:00:00 2001 From: Mathias Fredriksson Date: Mon, 17 Mar 2025 11:56:59 +0200 Subject: [PATCH] test(cryptorand): disable error tests on Go 1.24 Testing `rand.Reader.Read` for errors will panic 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 6abc2143875e2..cafd2156db620 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 (