aboutsummaryrefslogtreecommitdiffstats
path: root/integrations/integration_test.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2021-09-24 19:32:56 +0800
committerGitHub <noreply@github.com>2021-09-24 19:32:56 +0800
commit5842a55b3103d3f09751eb7b3b049415197debad (patch)
treef4c0ab5d74f4bcfaf416cc9a592ee7f743be7dc5 /integrations/integration_test.go
parent4a2655098fd1a594c7d33a144932bb5ec2fd7cd9 (diff)
downloadgitea-5842a55b3103d3f09751eb7b3b049415197debad.tar.gz
gitea-5842a55b3103d3f09751eb7b3b049415197debad.zip
Move login related structs and functions to models/login (#17093)
* Move login related structs and functions to models/login * Fix test * Fix lint * Fix lint * Fix lint of windows * Fix lint * Fix test * Fix test * Only load necessary fixtures when preparing unit tests envs * Fix lint * Fix test * Fix test * Fix error log * Fix error log * Fix error log * remove unnecessary change * fix error log * merge main branch
Diffstat (limited to 'integrations/integration_test.go')
-rw-r--r--integrations/integration_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/integrations/integration_test.go b/integrations/integration_test.go
index fac36320cf..1429893270 100644
--- a/integrations/integration_test.go
+++ b/integrations/integration_test.go
@@ -113,7 +113,9 @@ func TestMain(m *testing.M) {
}
err := db.InitFixtures(
- path.Join(filepath.Dir(setting.AppPath), "models/fixtures/"),
+ db.FixturesOptions{
+ Dir: filepath.Join(filepath.Dir(setting.AppPath), "models/fixtures/"),
+ },
)
if err != nil {
fmt.Printf("Error initializing test database: %v\n", err)