You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@answer.apache.org by "sosyz (via GitHub)" <gi...@apache.org> on 2024/07/30 16:22:53 UTC

[I] Parameter error in VerifyCode Test Case [incubator-answer]

sosyz opened a new issue, #1059:
URL: https://github.com/apache/incubator-answer/issues/1059

   ## Describe the bug
   
   The test code in [the line](https://github.com/apache/incubator-answer/blob/4692420e5ff366f7d7e0d5d14a2afab1527cbd0b/internal/repo/repo_test/email_repo_test.go#L34)  is missing a parameter.
   
   The function definition is:
   
   `SetCode(ctx context.Context, userID, code, content string, duration time.Duration) error`
   
   ### To Reproduce
   
   Steps to reproduce the behavior:
   
   1. Navigate to `internal/repo/repo_test/email_repo_test.go`
   2. Check line 34.
   
   ### Expected behavior
   
   Add a `userID` parameter and update the content var accordingly. The content variable needs to be updated because "test" cannot be parsed in the new version.
   
   <img width="1330" alt="image" src="https://github.com/user-attachments/assets/1aa3e44e-242b-4a54-85d5-6ae562a75eb9">
   
   ### Additional Information
   I can create a pull request to fix this issue if needed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@answer.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Parameter error in VerifyCode Test Case [incubator-answer]

Posted by "sosyz (via GitHub)" <gi...@apache.org>.
sosyz closed issue #1059: Parameter error in VerifyCode Test Case
URL: https://github.com/apache/incubator-answer/issues/1059


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@answer.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org