-
Notifications
You must be signed in to change notification settings - Fork 217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wallet update integration tests #257
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
[ expectResponseCode @IO HTTP.status200 | ||
, expectListSizeEqual 1 | ||
, expectListItemFieldEqual 0 walletName "New great name" | ||
, expectListItemFieldEqual 0 addressPoolGap 20 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The verifications could be shortened to just check walletName and walletId without reducing the effectiveness of this test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, most probably. Although in general I prefer to verify as much as possible whenever I can (just to be safe).
@@ -875,6 +1065,11 @@ spec = do | |||
"passphrase": "Secure passphrase" | |||
} |] | |||
|
|||
updateNamePayload :: Text -> Payload | |||
updateNamePayload name = Json [json| { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is also a possibility:
Json (Object ("name" .= name))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the hint :)
c89b3ed
to
1574f77
Compare
Issue Number
Overview
Comments
Still working on wallet update pass integration tests. Can get them in this PR (or another one if this one gets reviewed/approved before I finish)