Skip to content

Commit

Permalink
check that rewards are not received at e+3 after quitting pool
Browse files Browse the repository at this point in the history
  • Loading branch information
KtorZ committed Dec 6, 2019
1 parent 9c076ba commit 48ca283
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,18 @@ spec = do
[ expectResponseCode HTTP.status202
]

reward <- eventually $ do
r <- request @ApiWallet ctx (getWalletEp w) Default Empty
verify r
[ expectFieldSatisfy balanceReward (> 0)
]
pure $ getFromResponse balanceReward r

waitForNextEpoch ctx

eventually $ do
request @ApiWallet ctx (getWalletEp w) Default Empty >>= flip verify
[ expectFieldSatisfy balanceReward (> 0)
[ expectFieldSatisfy balanceReward (== reward)
]

it "STAKE_POOLS_JOIN_01 - I can join another stake-pool after previously \
Expand Down

0 comments on commit 48ca283

Please sign in to comment.