Fixed lint + gofmt
the build failed
Details
the build failed
Details
This commit is contained in:
parent
d0202aea41
commit
ed38925489
|
@ -4,4 +4,4 @@ import "testing"
|
|||
|
||||
func TestMain(m *testing.M) {
|
||||
MainTest(m, "..")
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,15 +1,16 @@
|
|||
package models
|
||||
|
||||
import (
|
||||
"github.com/go-xorm/xorm"
|
||||
"github.com/go-xorm/core"
|
||||
"os"
|
||||
"gopkg.in/testfixtures.v2"
|
||||
"testing"
|
||||
"path/filepath"
|
||||
"fmt"
|
||||
"github.com/go-xorm/core"
|
||||
"github.com/go-xorm/xorm"
|
||||
"gopkg.in/testfixtures.v2"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"testing"
|
||||
)
|
||||
|
||||
// MainTest creates the test engine
|
||||
func MainTest(m *testing.M, pathToRoot string) {
|
||||
var err error
|
||||
fixturesDir := filepath.Join(pathToRoot, "models")
|
||||
|
@ -52,4 +53,4 @@ func createTestEngine(fixturesDir string) error {
|
|||
// PrepareTestDatabase load test fixtures into test database
|
||||
func PrepareTestDatabase() error {
|
||||
return LoadFixtures()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue