Skip to content

Commit 2c9da85

Browse files
committed
go vet
1 parent 44dae7a commit 2c9da85

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

integration/auth/user_mgt_test.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,9 @@ func TestGetUsers(t *testing.T) {
225225

226226
t.Run("returns users by various identifier types in a single call", func(t *testing.T) {
227227
getUsersResult, err := client.GetUsers(context.Background(), []auth.UserIdentifier{
228-
auth.UIDIdentifier{"uid1"},
229-
auth.EmailIdentifier{"[email protected]"},
230-
auth.PhoneIdentifier{"+15555550003"},
228+
auth.UIDIdentifier{UID: "uid1"},
229+
auth.EmailIdentifier{Email: "[email protected]"},
230+
auth.PhoneIdentifier{PhoneNumber: "+15555550003"},
231231
auth.ProviderIdentifier{ProviderID: "google.com", ProviderUID: "google_uid4"},
232232
})
233233
if err != nil {
@@ -242,9 +242,9 @@ func TestGetUsers(t *testing.T) {
242242

243243
t.Run("returns found users and ignores non-existing users", func(t *testing.T) {
244244
getUsersResult, err := client.GetUsers(context.Background(), []auth.UserIdentifier{
245-
auth.UIDIdentifier{"uid1"},
246-
auth.UIDIdentifier{"uid_that_doesnt_exist"},
247-
auth.UIDIdentifier{"uid3"},
245+
auth.UIDIdentifier{UID: "uid1"},
246+
auth.UIDIdentifier{UID: "uid_that_doesnt_exist"},
247+
auth.UIDIdentifier{UID: "uid3"},
248248
})
249249
if err != nil {
250250
t.Errorf("GetUsers([...]) returned an error: %v", err)
@@ -266,7 +266,7 @@ func TestGetUsers(t *testing.T) {
266266

267267
t.Run("returns nothing when queried for only non-existing users", func(t *testing.T) {
268268
getUsersResult, err := client.GetUsers(context.Background(), []auth.UserIdentifier{
269-
auth.UIDIdentifier{"non-existing user"},
269+
auth.UIDIdentifier{UID: "non-existing user"},
270270
})
271271
if err != nil {
272272
t.Errorf("GetUsers([valid identifiers]) returned an error: %v", err)
@@ -287,8 +287,8 @@ func TestGetUsers(t *testing.T) {
287287

288288
t.Run("de-dups duplicate users", func(t *testing.T) {
289289
getUsersResult, err := client.GetUsers(context.Background(), []auth.UserIdentifier{
290-
auth.UIDIdentifier{"uid1"},
291-
auth.UIDIdentifier{"uid1"},
290+
auth.UIDIdentifier{UID: "uid1"},
291+
auth.UIDIdentifier{UID: "uid1"},
292292
})
293293
if err != nil {
294294
t.Errorf("GetUsers([valid identifiers]) returned an error: %v", err)
@@ -602,7 +602,7 @@ func TestDeleteUsers(t *testing.T) {
602602
ensureUsersNotFound := func(t *testing.T, uids []string) {
603603
identifiers := []auth.UserIdentifier{}
604604
for i := range uids {
605-
identifiers = append(identifiers, auth.UIDIdentifier{uids[i]})
605+
identifiers = append(identifiers, auth.UIDIdentifier{UID: uids[i]})
606606
}
607607

608608
getUsersResult, err := client.GetUsers(context.Background(), identifiers)

0 commit comments

Comments
 (0)