Fix master/slave bug #1601

Merged
lunny merged 2 commits from lunny/fix_bug into master 2020-03-13 00:42:11 +00:00
Showing only changes of commit af9b1378e5 - Show all commits

View File

@ -9,12 +9,18 @@ import (
"github.com/stretchr/testify/assert"
"xorm.io/xorm/log"
"xorm.io/xorm/schemas"
)
func TestEngineGroup(t *testing.T) {
assert.NoError(t, prepareEngine())
master := testEngine.(*Engine)
if master.Dialect().URI().DBType == schemas.SQLITE {
t.Skip()
return
}
eg, err := NewEngineGroup(master, []*Engine{master})
assert.NoError(t, err)