Skip to content

Commit

Permalink
fix failing CI (#1592)
Browse files Browse the repository at this point in the history
* add log test errors

* update beryx token
  • Loading branch information
juliangruber authored Jun 5, 2024
1 parent 9f0c85e commit aa7b699
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion main/test/wallet-backend.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion main/wallet-backend.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {}
Expand Down

0 comments on commit aa7b699

Please sign in to comment.