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 30, 2023
1 parent 7efa9a4 commit 3662e7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions 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
2 changes: 2 additions & 0 deletions test/e2e/profiles/kratos.base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ selfservice:
default_browser_return_url: http://localhost:4455/
allowed_return_urls:
- http://localhost:4455
- http://localhost:4457/Callback
- exp://example.com/Callback
- https://www.ory.sh/
- https://example.org/
- https://www.example.org/
Expand Down

0 comments on commit 3662e7c

Please sign in to comment.