Skip to content

Commit

Permalink
Fix integration test for MFA in UserRecord (#433)
Browse files Browse the repository at this point in the history
  • Loading branch information
lahirumaramba authored Apr 14, 2021
1 parent f0b4e36 commit 24bca17
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions integration/auth/user_mgt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@ func TestCreateUser(t *testing.T) {
t.Fatalf("CreateUser() = %v; want = nil", err)
}
defer deleteUser(user.UID)
var emptyFactors []*auth.MultiFactorInfo
want := auth.UserRecord{
UserInfo: &auth.UserInfo{
UID: user.UID,
Expand All @@ -412,6 +413,9 @@ func TestCreateUser(t *testing.T) {
CreationTimestamp: user.UserMetadata.CreationTimestamp,
},
TokensValidAfterMillis: user.TokensValidAfterMillis,
MultiFactor: &auth.MultiFactorSettings{
EnrolledFactors: emptyFactors,
},
}
if !reflect.DeepEqual(*user, want) {
t.Errorf("CreateUser() = %#v; want = %#v", *user, want)
Expand Down

0 comments on commit 24bca17

Please sign in to comment.