fix tests

This commit is contained in:
Lunny Xiao 2017-06-06 14:42:37 +08:00
parent 403e785c69
commit 4a9a2334ab
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ func TestSQLCount(t *testing.T) {
assertSync(t, new(UserinfoCount2), new(UserinfoBooks))
total, err := testEngine.SQL("SELECT count(*) FROM userinfo_count2 a LEFT JOIN (SELECT pid,count(id) as s_num FROM userinfo_books where is_open=1 GROUP BY pid) b ON a.id=b.pid ORDER BY a.id asc").
total, err := testEngine.SQL("SELECT count(id) FROM userinfo_count2").
Count()
assert.NoError(t, err)
assert.EqualValues(t, 0, total)