aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-11-04 02:22:10 +0800
committerDan Finlay <dan@danfinlay.com>2016-11-04 02:22:10 +0800
commit4db976ae46352c49e4401eba865081425419efe0 (patch)
tree3b5ae0c0b881c90bd22ebee317b9641dfce11b43 /app
parent756f56cfee442992c51ac84b042b36dc3f7845ba (diff)
downloadtangerine-wallet-browser-4db976ae46352c49e4401eba865081425419efe0.tar
tangerine-wallet-browser-4db976ae46352c49e4401eba865081425419efe0.tar.gz
tangerine-wallet-browser-4db976ae46352c49e4401eba865081425419efe0.tar.bz2
tangerine-wallet-browser-4db976ae46352c49e4401eba865081425419efe0.tar.lz
tangerine-wallet-browser-4db976ae46352c49e4401eba865081425419efe0.tar.xz
tangerine-wallet-browser-4db976ae46352c49e4401eba865081425419efe0.tar.zst
tangerine-wallet-browser-4db976ae46352c49e4401eba865081425419efe0.zip
Don't faucet during tests
Diffstat (limited to 'app')
-rw-r--r--app/scripts/lib/auto-faucet.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/scripts/lib/auto-faucet.js b/app/scripts/lib/auto-faucet.js
index ec5e8ed4c..1e86f735e 100644
--- a/app/scripts/lib/auto-faucet.js
+++ b/app/scripts/lib/auto-faucet.js
@@ -1,8 +1,9 @@
const uri = 'https://faucet.metamask.io/'
const METAMASK_DEBUG = 'GULP_METAMASK_DEBUG'
+const env = process.env.METAMASK_ENV
module.exports = function (address) {
- if (METAMASK_DEBUG) return // Don't faucet in development
+ if (METAMASK_DEBUG || env === 'test') return // Don't faucet in development or test
var http = new XMLHttpRequest()
var data = address
http.open('POST', uri, true)