Skip to content

Commit 5674997

Browse files
author
Cory Thompson
committed
Update unit tests to reflect new learnings about valid JWSSignature sizes.
1 parent 9f532a9 commit 5674997

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/JWSSignerTest.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ public void TestGenerateSignature()
4646
byte[] decodedSignature = UrlBase64.Decode(signature);
4747
int decodedSignatureLength = decodedSignature.Length;
4848

49-
Assert.AreEqual(66, decodedSignatureLength);
49+
50+
bool isSignatureLengthValid = decodedSignatureLength == 66 || decodedSignatureLength == 64;
51+
Assert.AreEqual(true, isSignatureLengthValid);
5052
}
5153
}
5254
}

0 commit comments

Comments
 (0)