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) {
|
func TestMain(m *testing.M) {
|
||||||
MainTest(m, "..")
|
MainTest(m, "..")
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,15 +1,16 @@
|
||||||
package models
|
package models
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/go-xorm/xorm"
|
|
||||||
"github.com/go-xorm/core"
|
|
||||||
"os"
|
|
||||||
"gopkg.in/testfixtures.v2"
|
|
||||||
"testing"
|
|
||||||
"path/filepath"
|
|
||||||
"fmt"
|
"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) {
|
func MainTest(m *testing.M, pathToRoot string) {
|
||||||
var err error
|
var err error
|
||||||
fixturesDir := filepath.Join(pathToRoot, "models")
|
fixturesDir := filepath.Join(pathToRoot, "models")
|
||||||
|
@ -52,4 +53,4 @@ func createTestEngine(fixturesDir string) error {
|
||||||
// PrepareTestDatabase load test fixtures into test database
|
// PrepareTestDatabase load test fixtures into test database
|
||||||
func PrepareTestDatabase() error {
|
func PrepareTestDatabase() error {
|
||||||
return LoadFixtures()
|
return LoadFixtures()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue