Skip to content

Commit

Permalink
test: in integration tests use non-public schema
Browse files Browse the repository at this point in the history
  • Loading branch information
hauleth committed Jan 3, 2025
1 parent a0c0523 commit fc0d6cf
Show file tree
Hide file tree
Showing 2 changed files with 242 additions and 235 deletions.
6 changes: 6 additions & 0 deletions test/integration/external_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,12 @@ defmodule Supavisor.Integration.ExternalTest do
]
})

on_exit(fn ->
Supavisor.Tenants.delete_tenant(tenant)

_ = Supavisor.Repo.query("DROP DATABASE IF EXISTS #{external_id}")
end)

{:ok, user: "postgres.#{external_id}", db: tenant.db_database, external_id: external_id}
end
end
Loading

0 comments on commit fc0d6cf

Please sign in to comment.