try to fix testEngine.Select undefined error

This commit is contained in:
jiangyanfeng 2018-12-08 18:45:02 +08:00 committed by Lunny Xiao
parent f03a36e3ac
commit 10d20be551
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,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)