Skip to content

Commit

Permalink
fix: speed up CacheExchangeRatesTest (#472)
Browse files Browse the repository at this point in the history
  • Loading branch information
marianogoldman committed Nov 5, 2020
1 parent e6d0533 commit b386579
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/Helpers.php
Expand Up @@ -7,8 +7,6 @@
use ArkEcosystem\Crypto\Identities\PublicKey;
use FurqanSiddiqui\BIP39\BIP39;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\File;
use Illuminate\Support\Facades\Http;

function configureExplorerDatabase(): void
Expand Down Expand Up @@ -149,8 +147,8 @@ function fakeKnownWallets(): void
function fakeCryptoCompare(): void
{
Http::fake([
'https://min-api.cryptocompare.com/data/price' => Http::response(['USD' => 0.2907]),
'https://min-api.cryptocompare.com/data/histoday' => Http::response(json_decode(file_get_contents(base_path('tests/fixtures/cryptocompare/historical.json')), true)),
'min-api.cryptocompare.com/data/price*' => Http::response(['USD' => 0.2907]),
'min-api.cryptocompare.com/data/histoday*' => Http::response(json_decode(file_get_contents(base_path('tests/fixtures/cryptocompare/historical.json')), true)),
]);
}

Expand Down

0 comments on commit b386579

Please sign in to comment.