Skip to content

Commit

Permalink
Fixed email_uni in testing
Browse files Browse the repository at this point in the history
Signed-off-by: Toomore Chiang <[email protected]>
  • Loading branch information
toomore committed Feb 12, 2025
1 parent ccd6e71 commit 5055350
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mails/mails_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ func TestGenParams(t *testing.T) {
}

func TestProcessSend(t *testing.T) {
stmt, err := utils.GetConn().Prepare(`INSERT INTO user(email,groups,f_name,l_name)
stmt, err := utils.GetConn().Prepare(`INSERT INTO user(email,email_uni,groups,f_name,l_name)
VALUES(?,?,?,?) ON DUPLICATE KEY UPDATE f_name=?, l_name=?`)
if err != nil {
t.Fatal(err)
}
stmt.Exec("[email protected]", "test", "Toomore", "Chiang", "Toomore", "Chiang")
stmt.Exec("toomore0929[email protected]", "toomore0929@gmail.com", "test", "Toomore", "Chiang", "Toomore", "Chiang")
rows, err := utils.GetConn().Query("select id,email,f_name,l_name from user where groups='test'")

if err != nil {
Expand All @@ -37,7 +37,7 @@ func TestProcessSend(t *testing.T) {
4)

stmt.Exec("to", "test2", "Toomore", "Chiang", "Toomore", "Chiang")
rows, err = utils.GetConn().Query("select id,email,f_name,l_name from user where groups='test2'")
rows, err = utils.GetConn().Query("select id,email,email_uni,f_name,l_name from user where groups='test2'")

if err != nil {
t.Fatal(err)
Expand Down

0 comments on commit 5055350

Please sign in to comment.