Skip to content

Commit

Permalink
Skip powerMod() crypto test on Travis w/ internal calculator
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMorel committed Jan 22, 2020
1 parent c91481b commit bb180da
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/BigIntegerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use Brick\Math\Exception\NumberFormatException;
use Brick\Math\Exception\DivisionByZeroException;
use Brick\Math\Exception\RoundingNecessaryException;
use Brick\Math\Internal\Calculator;
use Brick\Math\RoundingMode;

/**
Expand Down Expand Up @@ -1361,6 +1362,12 @@ public function providerPowerMod() : array
*/
public function testPowerModCrypto() : void
{
if (Calculator::get() instanceof Calculator\NativeCalculator) {
if (getenv('CI') === 'true') {
$this->markTestSkipped('This test is currently too slow and makes Travis CI timeout.');
}
}

$prime = BigInteger::fromBase(
'FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD1' .
'29024E088A67CC74020BBEA63B139B22514A08798E3404DD' .
Expand Down

0 comments on commit bb180da

Please sign in to comment.