Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e6983d8

Browse files
authored
test(cryptorand): disable error tests on Go 1.24 (coder#16955)
Testing `rand.Reader.Read` for errors will panic (not recoverable) in Go 1.24 and later.
1 parent df92df4 commit e6983d8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cryptorand/errors_test.go

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
//go:build !go1.24
2+
3+
// Testing `rand.Reader.Read` for errors will panic in Go 1.24 and later.
4+
15
package cryptorand_test
26

37
import (

0 commit comments

Comments
 (0)