-
Notifications
You must be signed in to change notification settings - Fork 5
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
test #21
base: master
Are you sure you want to change the base?
test #21
Conversation
main.go
Outdated
@@ -546,6 +612,9 @@ func balance(userid string, text []string) string { | |||
} | |||
|
|||
func main() { | |||
|
|||
go testserver.ForwardServer() |
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.
is this still needed?
looks good!
It would also be good to see a bit more of the edge cases tested. For instance what happens if brr is called twice in a row? This should confirm that the error does occur. I think it makes sense to include the accounts.json in the repo if it's required for testing. It would be good to figure out a way to test the confirmUser command to make sure that alice is able to create new users if they don't exist already. |
about commit 199f573:
|
About including accounts.json, I am thinking to test in another way, let Alice create the users for test, and delete them afterwards. Then the |
regard to the commit 04c098d:
|
tested confirmuser, brrr, tilbrrr, send
changed TxErr. This function parses the "out" from command "pooltoy tx bank send", however, there is no output JSON flag available for this command?? therefore, this command-generated output string cannot be unmarshalled to a go struct. I use the map to store the result.
please add acounts.json file and test_variable.go file to this repo when test.
example of test_variable.go:
var ( UserID1 = "xxxxyyyy" UserName1 = "lisa" User1 ="<@xxxxyyyy|lisa"
)