Skip to content

Commit

Permalink
test: add chained query test
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Bell committed Nov 16, 2022
1 parent 5f3a5f1 commit 498b988
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion tests/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,25 @@ tests:
- equal:
args: [ $validators[1], 5HpG9w8EBLe5XCrbczpwq5TSXvedjrBGCwqxK1iQ7qUsSWFc ]
- equal:
args: [ $total_issuance, 12000000000033333333 ]
args: [ $total_issuance, 12000000000033333333 ]

- name: Query tests
its:
- name: Chained query tests
actions:
- queries:
babe_authorities:
chain: *relay_chain
pallet: babe
call: authorities
delay: 0
args: [ ]
authority_balance:
chain: *relay_chain
pallet: system
call: account
delay: 0
args: [ $babe_authorities[2][0] ] # use value from previous query result
- asserts:
- equal:
args: [ $authority_balance.data.free, 1000000000000000000 ]

0 comments on commit 498b988

Please sign in to comment.