Skip to content

Commit

Permalink
Update persistence/sql/persister_cleanup_test.go
Browse files Browse the repository at this point in the history
Co-authored-by: Jonas Hungershausen <jonas.hungershausen@ory.sh>
  • Loading branch information
hperl and jonas-jonas committed Apr 28, 2023
1 parent 7efa9a4 commit b9d588d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion persistence/sql/persister_cleanup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func TestPersister_SessionTokenExchange_Cleanup(t *testing.T) {
assert.Nil(t, p.DeleteExpiredExchangers(ctx, currentTime, reg.Config().DatabaseCleanupBatchSize(ctx)))
})

t.Run("case=should throw error on cleanup session token exchangers", func(t *testing.T) {
t.Run("case=should throw error on cleanup session token exchangers if DB is closed", func(t *testing.T) {
p.GetConnection(ctx).Close()
assert.Error(t, p.DeleteExpiredExchangers(ctx, currentTime, reg.Config().DatabaseCleanupBatchSize(ctx)))
})
Expand Down

0 comments on commit b9d588d

Please sign in to comment.