Skip to content

Commit

Permalink
persistence/sql: fix dropped errors
Browse files Browse the repository at this point in the history
Signed-off-by: Lars Lehtonen <[email protected]>
  • Loading branch information
alrs committed Nov 22, 2023
1 parent 7861702 commit 3a64fc8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions persistence/sql/persister_nid_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1883,6 +1883,7 @@ func (s *PersisterTestSuite) TestUpdateClient() {
require.NoError(t, r.Persister().UpdateClient(s.t1, &u2))

actual, err = r.Persister().GetConcreteClient(s.t1, t1c1.ID)
require.NoError(t, err)
require.Equal(t, "updated", actual.Name)
require.Equal(t, t1Hash, actual.Secret)

Expand All @@ -1892,10 +1893,12 @@ func (s *PersisterTestSuite) TestUpdateClient() {
require.NoError(t, r.Persister().UpdateClient(s.t1, &u3))

actual, err = r.Persister().GetConcreteClient(s.t1, t1c1.ID)
require.NoError(t, err)
require.Equal(t, "updated", actual.Name)
require.NotEqual(t, t1Hash, actual.Secret)

actual, err = r.Persister().GetConcreteClient(s.t2, t2c1.ID)
require.NoError(t, err)
require.Equal(t, "updated", actual.Name)
require.Equal(t, t2Hash, actual.Secret)
})
Expand Down

0 comments on commit 3a64fc8

Please sign in to comment.