Skip to content

Commit

Permalink
fix: test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
zepatrik committed Sep 13, 2023
1 parent a4db934 commit df650bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ type Client struct {

// DEPRECATED: This field is deprecated and will be removed. It serves
// no purpose except the database not complaining.
PK sql.NullString `json:"-" db:"pk"`
PK sql.NullString `json:"-" db:"pk" faker:"-"`

// DEPRECATED: This field is deprecated and will be removed. It serves
// no purpose except the database not complaining.
Expand Down
4 changes: 2 additions & 2 deletions consent/manager_test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -411,8 +411,8 @@ func ManagerTests(deps Deps, m Manager, clientManager client.Manager, fositeMana
assert.Equal(t, updatedAuth.Unix(), time.Time(got.AuthenticatedAt).Unix()) // this was updated from confirm...
assert.EqualValues(t, tc.s.Subject, got.Subject)

time.Sleep(time.Second) // Make sure AuthAt does not equal...
updatedAuth2 := time.Now().Truncate(time.Second).UTC()
// Make sure AuthAt does not equal...
updatedAuth2 := updatedAuth.Add(1 * time.Second).UTC()
require.NoError(t, m.ConfirmLoginSession(ctx, nil, tc.s.ID, updatedAuth2, "some-other-subject", true))

got2, err := m.GetRememberedLoginSession(ctx, nil, tc.s.ID)
Expand Down

0 comments on commit df650bd

Please sign in to comment.