diff options
Diffstat (limited to 'models/main_test.go')
-rw-r--r-- | models/main_test.go | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/models/main_test.go b/models/main_test.go index 451b5e4b21..11c175ef88 100644 --- a/models/main_test.go +++ b/models/main_test.go @@ -1,14 +1,8 @@ package models import ( - "fmt" - "os" - "path/filepath" "testing" - "code.gitea.io/gitea/modules/setting" - - _ "github.com/mattn/go-sqlite3" // for the test engine "github.com/stretchr/testify/assert" ) @@ -19,17 +13,5 @@ func TestFixturesAreConsistent(t *testing.T) { } func TestMain(m *testing.M) { - if err := CreateTestEngine("fixtures/"); err != nil { - fmt.Printf("Error creating test engine: %v\n", err) - os.Exit(1) - } - - setting.AppURL = "https://try.gitea.io/" - setting.RunUser = "runuser" - setting.SSH.Port = 3000 - setting.SSH.Domain = "try.gitea.io" - setting.RepoRootPath = filepath.Join(os.TempDir(), "repos") - setting.AppDataPath = filepath.Join(os.TempDir(), "appdata") - - os.Exit(m.Run()) + MainTest(m, "..") } |