apache/incubator-answer

Parameter error in VerifyCode Test Case

sosyz opened this issue · 0 comments

Describe the bug

The test code in the line 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.

image

Additional Information

I can create a pull request to fix this issue if needed.