From d7eec869c2d7c7cc614c932434335c077548fc3f Mon Sep 17 00:00:00 2001 From: Cristian Le Date: Wed, 5 May 2021 10:37:30 +0900 Subject: [PATCH] Fix the previous tests --- authority/provisioner/provisioner_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/authority/provisioner/provisioner_test.go b/authority/provisioner/provisioner_test.go index bea2ab11..3d895277 100644 --- a/authority/provisioner/provisioner_test.go +++ b/authority/provisioner/provisioner_test.go @@ -122,7 +122,7 @@ func TestDefaultIdentityFunc(t *testing.T) { p: &OIDC{}, email: "john@smallstep.com", 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 { @@ -130,7 +130,7 @@ func TestDefaultIdentityFunc(t *testing.T) { p: &OIDC{}, email: "john@smallstep.com", 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 {