unit tests improvments
This commit is contained in:
parent
2cf20fe1c4
commit
b841ec121b
1 changed files with 3 additions and 1 deletions
|
@ -32,7 +32,9 @@ func createTestEngine(fixturesDir string) error {
|
||||||
x.SetMapper(core.GonicMapper{})
|
x.SetMapper(core.GonicMapper{})
|
||||||
|
|
||||||
// Sync dat shit
|
// Sync dat shit
|
||||||
x.Sync(&User{})
|
if err = x.StoreEngine("InnoDB").Sync2(tables...); err != nil {
|
||||||
|
return fmt.Errorf("sync database struct error: %v", err)
|
||||||
|
}
|
||||||
|
|
||||||
// Show SQL-Queries if nessecary
|
// Show SQL-Queries if nessecary
|
||||||
if os.Getenv("UNIT_TESTS_VERBOSE") == "1" {
|
if os.Getenv("UNIT_TESTS_VERBOSE") == "1" {
|
||||||
|
|
Loading…
Reference in a new issue