Skip to content
This repository was archived by the owner on Oct 20, 2025. It is now read-only.
This repository was archived by the owner on Oct 20, 2025. It is now read-only.

Parameter error in VerifyCode Test Case #1059

@sosyz

Description

@sosyz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions