Skip to content

Commit 228fb3d

Browse files
authored
Merge pull request #32 from str4d/fix-test-timeout
Run fewer slow tests to prevent Travis from timing out
2 parents c757bb5 + be6fd02 commit 228fb3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/net/i2p/crypto/eddsa/math/GroupElementTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ public void scalarMultiplyBasePointWithOneReturnsBasePoint() {
747747
// This test is slow (~6s) due to math utils using an inferior algorithm to calculate the result.
748748
@Test
749749
public void scalarMultiplyBasePointReturnsExpectedResult() {
750-
for (int i=0; i<100; i++) {
750+
for (int i=0; i<10; i++) {
751751
// Arrange:
752752
final GroupElement basePoint = ed25519.getB();
753753
final FieldElement f = MathUtils.getRandomFieldElement();
@@ -809,7 +809,7 @@ public void testDoubleScalarMultiplyVariableTime() {
809809
// This test is slow (~6s) due to math utils using an inferior algorithm to calculate the result.
810810
@Test
811811
public void doubleScalarMultiplyVariableTimeReturnsExpectedResult() {
812-
for (int i=0; i<50; i++) {
812+
for (int i=0; i<10; i++) {
813813
// Arrange:
814814
final GroupElement basePoint = ed25519.getB();
815815
final GroupElement g = MathUtils.getRandomGroupElement();

0 commit comments

Comments
 (0)