Fixed lint + gofmt
the build failed Details

This commit is contained in:
konrad 2018-01-16 11:55:12 +01:00 committed by kolaente
parent d0202aea41
commit ed38925489
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
2 changed files with 9 additions and 8 deletions

View File

@ -4,4 +4,4 @@ import "testing"
func TestMain(m *testing.M) {
MainTest(m, "..")
}
}

View File

@ -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()
}
}