Skip to content
This repository was archived by the owner on Apr 18, 2024. It is now read-only.

Commit 0cae3ed

Browse files
committed
fail without exception
1 parent 39430cd commit 0cae3ed

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/src/main/java/org/whispersystems/curve25519/Curve25519ProviderTest.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,8 @@ public void testVRFFailedVerifyByMessage() throws NoSuchProviderException, VrfSi
138138
msg[4] ^= 0xff;
139139

140140
try {
141-
provider.verifyVrfSignature(pubkey, msg, signature );
141+
provider.verifyVrfSignature(pubkey, msg, signature);
142+
fail();
142143
} catch(VrfSignatureVerificationFailedException ignored) {}
143144
}
144145

@@ -152,7 +153,8 @@ public void testVRFFailedVerifyByPublicKey() throws NoSuchProviderException, Vrf
152153
pubkey[4] ^= 0xff;
153154

154155
try {
155-
provider.verifyVrfSignature(pubkey, msg, signature );
156+
provider.verifyVrfSignature(pubkey, msg, signature);
157+
fail();
156158
} catch(VrfSignatureVerificationFailedException ignored) {}
157159
}
158160

@@ -166,7 +168,8 @@ public void testVRFFailedVerifyBySignature() throws NoSuchProviderException, Vrf
166168
signature[4] ^= 0xff;
167169

168170
try {
169-
provider.verifyVrfSignature(pubkey, msg, signature );
171+
provider.verifyVrfSignature(pubkey, msg, signature);
172+
fail();
170173
} catch(VrfSignatureVerificationFailedException ignored) {}
171174
}
172175

0 commit comments

Comments
 (0)