diff --git a/internal/securerandom/random_test.go b/internal/securerandom/random_test.go index 546977da33..8890303673 100644 --- a/internal/securerandom/random_test.go +++ b/internal/securerandom/random_test.go @@ -15,11 +15,11 @@ func TestGetSecureReader(t *testing.T) { buf := make([]byte, 32) n, err := sr.Reader.Read(buf) + if err != nil { t.Fatalf("failed to read random bytes: %v", err) } if n != len(buf) { t.Fatalf("expected to read %d bytes, got %d", len(buf), n) } - }