Skip to content

Commit 5f73ddf

Browse files
authored
Fix integration tests create workspace user not verified error (#19186)
1 parent 6d02689 commit 5f73ddf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/pkg/integration/apis.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,13 +481,14 @@ func (c *ComponentAPI) CreateUser(username string, token string) (string, error)
481481
}
482482

483483
userId = userUuid.String()
484-
_, err = db.Exec(`INSERT IGNORE INTO d_b_user (id, creationDate, avatarUrl, name, fullName, featureFlags) VALUES (?, ?, ?, ?, ?, ?)`,
484+
_, err = db.Exec(`INSERT IGNORE INTO d_b_user (id, creationDate, avatarUrl, name, fullName, featureFlags, lastVerificationTime) VALUES (?, ?, ?, ?, ?, ?, ?)`,
485485
userId,
486486
time.Now().Format(time.RFC3339),
487487
"",
488488
username,
489489
username,
490490
"{\"permanentWSFeatureFlags\":[]}",
491+
time.Now().Format(time.RFC3339),
491492
)
492493
if err != nil {
493494
return "", err

0 commit comments

Comments
 (0)