Skip to content

Commit 9cd9fce

Browse files
adecaroale-linux
authored andcommitted
[FAB-13351] Test Robustification
This change-set enhance the tests to make sure that a credential is invalidate always successfuly. Change-Id: Id6d11bc735f0b03a07e97e99a57ec41b4ea26bb8 Signed-off-by: Angelo De Caro <adc@zurich.ibm.com> (cherry picked from commit 419397e)
1 parent 0311c83 commit 9cd9fce

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bccsp/idemix/bridge/bridge_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,11 @@ var _ = Describe("Idemix Bridge", func() {
788788
})
789789

790790
It("invalid credential request in verifying credential", func() {
791-
credRequest[4] = 0
791+
if credRequest[4] == 0 {
792+
credRequest[4] = 1
793+
} else {
794+
credRequest[4] = 0
795+
}
792796
credential, err := CredentialSigner.Sign(
793797
IssuerKey,
794798
credRequest,

0 commit comments

Comments
 (0)