Debian Codegraph @

debian/patches/0001-Skip-TestSignerWithBrokenRand.patch

raw
1 From: Shengjing Zhu <[email protected]>
2 Date: Thu, 9 Feb 2023 14:30:37 +0800
3 Subject: Skip TestSignerWithBrokenRand
4
5 Due to https://github.com/golang/go/commit/8a81fdf1 on Go1.20
6 Go's crypto lib ignores the rand source, so it won't fail.
7
8 Bug: https://github.com/go-jose/go-jose/issues/27
9 ---
10 signing_test.go | 1 +
11 1 file changed, 1 insertion(+)
12
13 diff --git a/signing_test.go b/signing_test.go
14 index 15c3197..9faa155 100644
15 --- a/signing_test.go
16 +++ b/signing_test.go
17 @@ -149,6 +149,7 @@ func TestRoundtripsJWSCorruptSignature(t *testing.T) {
18 }
19
20 func TestSignerWithBrokenRand(t *testing.T) {
21 + t.Skip("Broken on Go1.20")
22 sigAlgs := []SignatureAlgorithm{RS256, RS384, RS512, PS256, PS384, PS512}
23
24 serializer := func(obj *JsonWebSignature) (string, error) { return obj.CompactSerialize() }