From 7aa3c5b6561a84cb3a4f192ea5ec98a65660d821 Mon Sep 17 00:00:00 2001 From: g1nt0ki <99907941+g1nt0ki@users.noreply.github.com> Date: Wed, 10 Jan 2024 07:49:45 +0100 Subject: [PATCH] minor fix --- test.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/test.js b/test.js index 1038bdc1088..f83f5ce5895 100644 --- a/test.js +++ b/test.js @@ -19,11 +19,12 @@ const { PromisePool } = require('@supercharge/promise-pool') const currentCacheVersion = sdk.cache.currentVersion // load env for cache // console.log(`Using cache version ${currentCacheVersion}`) -Object.keys(process.env).forEach((key) => { - if (key.endsWith('_RPC')) return; - if (['TVL_LOCAL_CACHE_ROOT_FOLDER', 'LLAMA_DEBUG_MODE', ...ENV_KEYS].includes(key) || key.includes('SDK')) return; - delete process.env[key] -}) +if (process.env.LLAMA_SANITIZE) + Object.keys(process.env).forEach((key) => { + if (key.endsWith('_RPC')) return; + if (['TVL_LOCAL_CACHE_ROOT_FOLDER', 'LLAMA_DEBUG_MODE', ...ENV_KEYS].includes(key) || key.includes('SDK')) return; + delete process.env[key] + }) const locks = []; function getCoingeckoLock() {