Skip to content

Commit

Permalink
fix: snapshot regression
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Mar 7, 2022
1 parent 5d70f9c commit 6481441
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion identity/identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ func NewIdentity(traitsSchemaID string) *Identity {
traitsSchemaID = config.DefaultIdentityTraitsSchemaID
}

stateChangedAt := sqlxx.NullTime(time.Now())
stateChangedAt := sqlxx.NullTime(time.Now().UTC())
return &Identity{
ID: x.NewUUID(),
Credentials: map[CredentialsType]Credentials{},
Expand Down
4 changes: 2 additions & 2 deletions identity/test/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ func TestPool(ctx context.Context, conf *config.Config, p interface {
actual, creds, err := p.FindByCredentialsIdentifier(ctx, ct, caseSensitive)
require.NoError(t, err)
assertx.EqualAsJSONExcept(t, expected.Credentials[ct], creds, []string{"created_at", "updated_at", "id"})
assertx.EqualAsJSONExcept(t, expected, actual, []string{"created_at", "updated_at", "id"})
assertx.EqualAsJSONExcept(t, expected, actual, []string{"created_at", "state_changed_at", "updated_at", "id"})
})
}
})
Expand All @@ -520,7 +520,7 @@ func TestPool(ctx context.Context, conf *config.Config, p interface {
ec := expected.Credentials[ct]
ec.Identifiers = []string{strings.ToLower(caseSensitive)}
assertx.EqualAsJSONExcept(t, ec, creds, []string{"created_at", "updated_at", "id", "config.user_handle", "config.credentials", "version"})
assertx.EqualAsJSONExcept(t, expected, actual, []string{"created_at", "updated_at", "id"})
assertx.EqualAsJSONExcept(t, expected, actual, []string{"created_at", "state_changed_at", "updated_at", "id"})
}
})
}
Expand Down

0 comments on commit 6481441

Please sign in to comment.