Skip to content

Commit

Permalink
Use waitForBlockHeight
Browse files Browse the repository at this point in the history
+ change test assertions
  • Loading branch information
infinia-yzl committed Sep 26, 2022
1 parent ec9bfbb commit cc529b2
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe('TxOutSetInfo', () => {

beforeAll(async () => {
await container.start()
await container.generate(1)
await container.waitForBlockHeight(1)
})

afterAll(async () => {
Expand All @@ -19,14 +19,14 @@ describe('TxOutSetInfo', () => {
const txOutSetInfo = await client.blockchain.getTxOutSetInfo()

expect(txOutSetInfo).toStrictEqual({
height: 1,
height: expect.any(Number),
bestblock: expect.any(String),
transactions: 10,
txouts: 15,
bogosize: 1117,
transactions: expect.any(Number),
txouts: expect.any(Number),
bogosize: expect.any(Number),
hash_serialized_2: expect.any(String),
disk_size: 0,
total_amount: new BigNumber(400000259.8)
disk_size: expect.any(Number),
total_amount: expect.any(BigNumber)
})
})
})

0 comments on commit cc529b2

Please sign in to comment.