From fad66c7266645850ac2f1d585bf4fbe410f25802 Mon Sep 17 00:00:00 2001 From: Felipe Knorr Kuhn <100320+knorrium@users.noreply.github.com> Date: Fri, 12 Aug 2022 22:52:56 -0700 Subject: [PATCH] Update tests to include the POOLS_JSON_TREE_URL and POOLS_JSON_URL fields --- backend/src/__fixtures__/mempool-config.template.json | 4 +++- backend/src/__tests__/config.test.ts | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/backend/src/__fixtures__/mempool-config.template.json b/backend/src/__fixtures__/mempool-config.template.json index afb9a8ae3..e9c5c3576 100644 --- a/backend/src/__fixtures__/mempool-config.template.json +++ b/backend/src/__fixtures__/mempool-config.template.json @@ -21,7 +21,9 @@ "EXTERNAL_RETRY_INTERVAL": 13, "USER_AGENT": "__MEMPOOL_USER_AGENT__", "STDOUT_LOG_MIN_PRIORITY": "__MEMPOOL_STDOUT_LOG_MIN_PRIORITY__", - "INDEXING_BLOCKS_AMOUNT": 14 + "INDEXING_BLOCKS_AMOUNT": 14, + "POOLS_JSON_TREE_URL": "__POOLS_JSON_TREE_URL__", + "POOLS_JSON_URL": "__POOLS_JSON_URL__" }, "CORE_RPC": { "HOST": "__CORE_RPC_HOST__", diff --git a/backend/src/__tests__/config.test.ts b/backend/src/__tests__/config.test.ts index a2ea18058..9453505f4 100644 --- a/backend/src/__tests__/config.test.ts +++ b/backend/src/__tests__/config.test.ts @@ -34,7 +34,9 @@ describe('Mempool Backend Config', () => { EXTERNAL_MAX_RETRY: 1, EXTERNAL_RETRY_INTERVAL: 0, USER_AGENT: 'mempool', - STDOUT_LOG_MIN_PRIORITY: 'debug' + STDOUT_LOG_MIN_PRIORITY: 'debug', + POOLS_JSON_TREE_URL: 'https://api.github.com/repos/mempool/mining-pools/git/trees/master', + POOLS_JSON_URL: 'https://raw.githubusercontent.com/mempool/mining-pools/master/pools.json' }); expect(config.ELECTRUM).toStrictEqual({ HOST: '127.0.0.1', PORT: 3306, TLS_ENABLED: true });