Skip to content

Commit

Permalink
test: delete identities to avoid side effects on other cases
Browse files Browse the repository at this point in the history
  • Loading branch information
zepatrik committed Nov 14, 2024
1 parent 630f9a9 commit 914f572
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions identity/test/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,8 @@ func TestPool(ctx context.Context, p persistence.Persister, m *identity.Manager,
// because of mysql precision
assert.WithinDuration(t, id.CreatedAt, idFromDB.CreatedAt, time.Second)
assert.WithinDuration(t, id.UpdatedAt, idFromDB.UpdatedAt, time.Second)

require.NoError(t, p.DeleteIdentity(ctx, id.ID))
}
})

Expand Down Expand Up @@ -393,6 +395,8 @@ func TestPool(ctx context.Context, p persistence.Persister, m *identity.Manager,
// because of mysql precision
assert.WithinDuration(t, id.CreatedAt, idFromDB.CreatedAt, time.Second)
assert.WithinDuration(t, id.UpdatedAt, idFromDB.UpdatedAt, time.Second)

require.NoError(t, p.DeleteIdentity(ctx, id.ID))
}

for _, id := range identities[60:] {
Expand Down

0 comments on commit 914f572

Please sign in to comment.