mirror of
https://github.com/coder/coder.git
synced 2025-07-23 21:32:07 +00:00
fix: allow for alternate usernames on conflict (#4614)
This commit is contained in:
@ -140,8 +140,12 @@ func TestEntitlements(t *testing.T) {
|
||||
t.Run("TooManyUsers", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
db := databasefake.New()
|
||||
db.InsertUser(context.Background(), database.InsertUserParams{})
|
||||
db.InsertUser(context.Background(), database.InsertUserParams{})
|
||||
db.InsertUser(context.Background(), database.InsertUserParams{
|
||||
Username: "test1",
|
||||
})
|
||||
db.InsertUser(context.Background(), database.InsertUserParams{
|
||||
Username: "test2",
|
||||
})
|
||||
db.InsertLicense(context.Background(), database.InsertLicenseParams{
|
||||
JWT: coderdenttest.GenerateLicense(t, coderdenttest.LicenseOptions{
|
||||
UserLimit: 1,
|
||||
|
Reference in New Issue
Block a user