From aa7b699edc8c2c92dd3f7dbad8830479645ceae4 Mon Sep 17 00:00:00 2001 From: Julian Gruber Date: Wed, 5 Jun 2024 04:22:46 -0700 Subject: [PATCH] fix failing CI (#1592) * add log test errors * update beryx token --- main/test/wallet-backend.test.js | 8 +++++++- main/wallet-backend.js | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/main/test/wallet-backend.test.js b/main/test/wallet-backend.test.js index 407931c84..038852984 100644 --- a/main/test/wallet-backend.test.js +++ b/main/test/wallet-backend.test.js @@ -53,7 +53,13 @@ describe('Wallet Backend', function () { this.timeout(120_000) await backend.setup(TEST_SEED_PHRASE) - await pRetry(() => backend.fetchAllTransactions(), { retries: 10 }) + await pRetry(() => backend.fetchAllTransactions(), { + retries: 10, + onFailedAttempt: err => { + console.error(err) + console.error('Retrying...') + } + }) assert.notStrictEqual(backend.transactions.length, 0, 'has transactions') for (const tx of backend.transactions) { assert.notStrictEqual( diff --git a/main/wallet-backend.js b/main/wallet-backend.js index be2c10906..483c73f46 100644 --- a/main/wallet-backend.js +++ b/main/wallet-backend.js @@ -29,7 +29,7 @@ const log = require('electron-log').scope('wallet-backend') const DISABLE_KEYTAR = process.env.DISABLE_KEYTAR === 'true' // eslint-disable-next-line max-len -const BERYX_TOKEN = 'eyJhbGciOiJFUzI1NiIsImtpZCI6ImtleS1iZXJ5eC0wMDEiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sImlzcyI6IlpvbmRheCIsImF1ZCI6WyJiZXJ5eCJdLCJleHAiOjE3MTc0OTk3MTgsImp0aSI6Ikp1bGlhbiBHcnViZXIsanVsaWFuQGp1bGlhbmdydWJlci5jb20ifQ.1COrxNiDQado0s5Rb2yxL-GNFTCbtYnXQGCQcVnm9hjRaMk6rhgesfRP_Um_B09NcQY02oWpk0y75njBkDwp5A' +const BERYX_TOKEN = 'eyJhbGciOiJFUzI1NiIsImtpZCI6ImtleS1iZXJ5eC0wMDEiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sImlzcyI6IlpvbmRheCIsImF1ZCI6WyJiZXJ5eCJdLCJleHAiOjE3MjI3Njk5NjYsImp0aSI6Ikp1bGlhbiBHcnViZXIsanVsaWFuQGp1bGlhbmdydWJlci5jb20ifQ.N8jLM3xyNuHOGarXaLaat7dSsbHKQGHU_WW6hBK-zwvYV-8ifCDUMQU1zJhlw90UU7m4ZrxCFTnB8LbeVtVwxQ' // eslint-disable-next-line @typescript-eslint/no-empty-function async function noop () {}