Skip to content

Commit

Permalink
fix: dropped persistence/sql test errors (#3670)
Browse files Browse the repository at this point in the history
Signed-off-by: Lars Lehtonen <lars.lehtonen@gmail.com>
  • Loading branch information
alrs authored Dec 13, 2023
1 parent 9389773 commit 22f0119
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 22f0119

Please sign in to comment.