Skip to content

Commit

Permalink
shore: Increate timeout and add more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
neithanmo committed Jul 24, 2024
1 parent 6ae047f commit 53d2bd2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests_zemu/tests/txs_basic.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { fee_for, TX_INPUT_DATA } from './_vectors'
import crypto from 'crypto'
import { takeLastSnapshot } from './utils'
import { Signatures } from '@zondax/zcashtools/build/native'
jest.setTimeout(60000)
jest.setTimeout(200000)

const tx_version = 0x05

Expand Down Expand Up @@ -357,13 +357,15 @@ describe('tx methods', function () {
// The builder needs these signatures to add it to the transaction blob.
// We need to do this one by one.
// So we first gather all signatures we need.
console.log('Extract signatures.....')

const req7 = await app.extractSpendSignature()
console.log(req7)

const req8 = await app.extractSpendSignature()
console.log(req8)

console.log('Appending signatures.....')
// At this point we gathered all signatures.
// We now add these signatures to the builder.
// Note that for this transaction, we do not have any transparent signatures.
Expand All @@ -376,13 +378,16 @@ describe('tx methods', function () {
const b5 = builder.add_signatures(signatures)
expect(b5).toBeTruthy()

console.log('Taking last snapshot....')
await takeLastSnapshot(testname, last_index, sim)

// The builder is now done and the transaction is complete.
console.log(' Builder finalize')
const b6 = builder.finalize()
expect(b6).toBeDefined()

console.log(b6)
console.log('*****B6: ', b6)
expect(true).toEqual(true)
} finally {
await sim.close()
}
Expand Down

0 comments on commit 53d2bd2

Please sign in to comment.