try to fix testEngine.Select undefined error

This commit is contained in:
jiangyanfeng 2018-12-08 18:45:02 +08:00
parent f5e3392860
commit bd36dab342
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ func TestCount(t *testing.T) {
assert.NoError(t, err)
assert.EqualValues(t, 1, cnt)
total, err = testEngine.Select(colName).Where(cond).Count(new(UserinfoCount))
total, err = testEngine.Where(cond).Select(colName).Count(new(UserinfoCount))
assert.NoError(t, err)
assert.EqualValues(t, 1, total)