Skip to content

Commit

Permalink
Add test to confirm NO delay for successful authentications.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanknowles committed Aug 3, 2020
1 parent b4d6181 commit e986421
Showing 1 changed file with 13 additions and 0 deletions.
Expand Up @@ -950,6 +950,19 @@ spec = do
expectResponseCode @IO HTTP.status403 rup
expectErrorMessage errMsg403WrongPass rup

it "WALLETS_UPDATE_PASS_09 - \
\No delay on authentication success" $ \ctx -> do
w <- emptyWalletWith ctx
("Wallet to update pass", "cardano-passphrase", 20)
let payload = updatePassPayload "cardano-passphrase" "whatever-pass"
startTime <- getCurrentTime
rup <- request @ApiWallet ctx
(Link.putWalletPassphrase @'Shelley w) Default payload
endTime <- getCurrentTime
let timeElapsed = endTime `diffUTCTime` startTime
timeElapsed `shouldSatisfy` (< minimumExecutionTimeOnAuthFailure)
expectResponseCode @IO HTTP.status204 rup

it "WALLETS_COIN_SELECTION_01 - \
\A singleton payment is included in the coin selection output." $
\ctx -> do
Expand Down

0 comments on commit e986421

Please sign in to comment.