Merge pull request #129 from cypherstack/testing-exchange

fix test
This commit is contained in:
Marco Salazar 2022-10-12 12:28:08 -06:00 committed by GitHub
commit 650428500b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -79,7 +79,7 @@ class PriceAPI {
}
final externalCalls = Prefs.instance.externalCalls;
if (!externalCalls) {
if (!Logger.isTestEnv && !externalCalls) {
Logging.instance.log("User does not want to use external calls",
level: LogLevel.Info);
return _cachedPrices;
@ -124,7 +124,7 @@ class PriceAPI {
static Future<List<String>?> availableBaseCurrencies() async {
final externalCalls = Prefs.instance.externalCalls;
if (!externalCalls) {
if (!Logger.isTestEnv && !externalCalls) {
Logging.instance.log("User does not want to use external calls",
level: LogLevel.Info);
return null;