mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-10-19 13:07:31 +00:00
With XUI_DB_TYPE=postgres every test package shared one database and worked in public. Go runs package test binaries concurrently, so migrations raced and rows a previous run left behind leaked into the next. testpg.IsolatePackage creates a schema for the calling package, puts it first on search_path and drops it when the package finishes. It returns at once unless XUI_DB_TYPE is postgres. internal/web/service's TestMain adopts it. |
||
|---|---|---|
| .. | ||
| isolate.go | ||