Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
wirednkod committed Sep 29, 2023
1 parent 6c1fedd commit ea7eb86
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .zombienet-tests/0002-check-balance.zndsl
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ Creds: config

alice: is up
bob: is up
alice: ts-script ./0002-checkBalance.ts with "alice" return is "1000000000000000000n" within 200 seconds
alice: ts-script ./0002-checkBalance.ts with "alice" return is 1 within 200 seconds
8 changes: 6 additions & 2 deletions .zombienet-tests/0002-checkBalance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,17 @@ export async function run(_nodeName: string, networkInfo: any) {
aliceBalance,
typeof aliceBalance,
)
resolve(chainHeadFollower.unfollow())
if (aliceBalance === "1000000000000000000n") {
resolve(chainHeadFollower.unfollow())
} else {
reject("meh")
}
}

chainHeadFollower.unpin([latestFinalized])
},
reject,
)
})
return aliceBalance
return 1
}

0 comments on commit ea7eb86

Please sign in to comment.