mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 20:09:23 +00:00
fix test
This commit is contained in:
parent
deec0cdddb
commit
2f7585a5e0
1 changed files with 2 additions and 2 deletions
|
@ -79,7 +79,7 @@ class PriceAPI {
|
||||||
}
|
}
|
||||||
|
|
||||||
final externalCalls = Prefs.instance.externalCalls;
|
final externalCalls = Prefs.instance.externalCalls;
|
||||||
if (!externalCalls) {
|
if (!Logger.isTestEnv && !externalCalls) {
|
||||||
Logging.instance.log("User does not want to use external calls",
|
Logging.instance.log("User does not want to use external calls",
|
||||||
level: LogLevel.Info);
|
level: LogLevel.Info);
|
||||||
return _cachedPrices;
|
return _cachedPrices;
|
||||||
|
@ -124,7 +124,7 @@ class PriceAPI {
|
||||||
|
|
||||||
static Future<List<String>?> availableBaseCurrencies() async {
|
static Future<List<String>?> availableBaseCurrencies() async {
|
||||||
final externalCalls = Prefs.instance.externalCalls;
|
final externalCalls = Prefs.instance.externalCalls;
|
||||||
if (!externalCalls) {
|
if (!Logger.isTestEnv && !externalCalls) {
|
||||||
Logging.instance.log("User does not want to use external calls",
|
Logging.instance.log("User does not want to use external calls",
|
||||||
level: LogLevel.Info);
|
level: LogLevel.Info);
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in a new issue