Skip to content

Commit 3adf769

Browse files
lestrratDaisuke Maki
and
Daisuke Maki
authored
Latchset workaround (#1270)
* Skip TestJoseCompatibility * appease linter --------- Co-authored-by: Daisuke Maki <[email protected]>
1 parent 8d7d3e8 commit 3adf769

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

Changes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Changes
22
=======
33

4+
UNRELEASED
5+
* Skip TestJoseCompatibility, because latchset/jose recently decided to set `p2c` to
6+
32768, but we do not have the ability to set this number in v1
7+
48
v1.2.30 28 Jul 2024
59
* Update minimum required go version to 1.20
610
* Update tests so that they work on 32-bit systems

jwx_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"crypto/ecdsa"
66
"crypto/rsa"
77
"fmt"
8+
"os"
89
"strings"
910
"testing"
1011

@@ -90,6 +91,11 @@ func TestDecoderSetting(t *testing.T) {
9091
func TestJoseCompatibility(t *testing.T) {
9192
t.Parallel()
9293

94+
if os.Getenv(`JWX_ENABLE_JOSE_COMPATIBILITY_TESTS`) == "" {
95+
t.Logf("This test is skipped for v1 -- v1 does not have the ability to allow higher number of 'p2c', but new latchset/jose sets it to 32768")
96+
return
97+
}
98+
9399
if testing.Short() {
94100
t.Logf("Skipped during short tests")
95101
return

0 commit comments

Comments
 (0)