فهرست منبع

Fix the previous tests

Cristian Le 5 سال پیش
والد
کامیت
d7eec869c2
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      authority/provisioner/provisioner_test.go

+ 2 - 2
authority/provisioner/provisioner_test.go

@@ -122,7 +122,7 @@ func TestDefaultIdentityFunc(t *testing.T) {
 				p:         &OIDC{},
 				p:         &OIDC{},
 				email:     "john@smallstep.com",
 				email:     "john@smallstep.com",
 				usernames: []string{"johnny"},
 				usernames: []string{"johnny"},
-				identity:  &Identity{Usernames: []string{"johnny", "john", "john@smallstep.com"}},
+				identity:  &Identity{Usernames: []string{"john", "john@smallstep.com"}},
 			}
 			}
 		},
 		},
 		"ok usernames": func(t *testing.T) test {
 		"ok usernames": func(t *testing.T) test {
@@ -130,7 +130,7 @@ func TestDefaultIdentityFunc(t *testing.T) {
 				p:         &OIDC{},
 				p:         &OIDC{},
 				email:     "john@smallstep.com",
 				email:     "john@smallstep.com",
 				usernames: []string{"johnny", "js", "", "johnny", ""},
 				usernames: []string{"johnny", "js", "", "johnny", ""},
-				identity:  &Identity{Usernames: []string{"johnny", "js", "john", "john@smallstep.com"}},
+				identity:  &Identity{Usernames: []string{"john", "john@smallstep.com"}},
 			}
 			}
 		},
 		},
 		"ok empty username": func(t *testing.T) test {
 		"ok empty username": func(t *testing.T) test {