Skip to content

Commit 24bca17

Browse files
Fix integration test for MFA in UserRecord (#433)
1 parent f0b4e36 commit 24bca17

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

integration/auth/user_mgt_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,7 @@ func TestCreateUser(t *testing.T) {
403403
t.Fatalf("CreateUser() = %v; want = nil", err)
404404
}
405405
defer deleteUser(user.UID)
406+
var emptyFactors []*auth.MultiFactorInfo
406407
want := auth.UserRecord{
407408
UserInfo: &auth.UserInfo{
408409
UID: user.UID,
@@ -412,6 +413,9 @@ func TestCreateUser(t *testing.T) {
412413
CreationTimestamp: user.UserMetadata.CreationTimestamp,
413414
},
414415
TokensValidAfterMillis: user.TokensValidAfterMillis,
416+
MultiFactor: &auth.MultiFactorSettings{
417+
EnrolledFactors: emptyFactors,
418+
},
415419
}
416420
if !reflect.DeepEqual(*user, want) {
417421
t.Errorf("CreateUser() = %#v; want = %#v", *user, want)

0 commit comments

Comments
 (0)