A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
fix: Update Test_emailRepo_VerifyCode to handle additional parameters
Sonuia4830a411983
diff --git a/internal/repo/repo_test/email_repo_test.go b/internal/repo/repo_test/email_repo_test.goindex f9f43372..62d1ccb8 100644--- a/internal/repo/repo_test/email_repo_test.go+++ b/internal/repo/repo_test/email_repo_test.go@@ -30,8 +30,8 @@ import (func Test_emailRepo_VerifyCode(t *testing.T) {emailRepo := export.NewEmailRepo(testDataSource)- code, content := "1111", "test"- err := emailRepo.SetCode(context.TODO(), code, content, time.Minute)+ code, content := "1111", "{\"source_type\":\"\",\"e_mail\":\"\",\"user_id\":\"1\",\"skip_validation_latest_code\":false}"+ err := emailRepo.SetCode(context.TODO(), "1", code, content, time.Minute)assert.NoError(t, err)verifyContent, err := emailRepo.VerifyCode(context.TODO(), code)