-
Notifications
You must be signed in to change notification settings - Fork 3
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 duplicate username (fixed) #3
Comments
I think if the user fail to login, he won't be allocated a userId, so we should keep it 0. |
Yes, the way we implemented it is corret too. But if we want the test to pass, we'll need to allocate a new user Id (setting userId to -1 or -2 according to the error was too clever for their tests :D ) ----- Mail original ----- I think if the user fail to login, he won't be allocated a userId, so we should keep it 0. — |
I think you are talking about the test "trial_retransmit_one_user_login_udp_server_test.py". |
For the "trial_retransmit_one_user_login_udp_server_test.py", I don't think it's an error in their test. Actually, a client sends a login request but the ack is lost, so he resends a request. The problem in the code is that we don't resend the same ACK again (as we're supposed to do) but we consider the second request as a duplicate login request... |
fix with commit 2d85ccc |
In the login response, we should have used "pack.userId = self.currentId" instead of pack.userId=0
The text was updated successfully, but these errors were encountered: