This commit is contained in:
Lunny Xiao 2018-04-09 15:32:30 +08:00
parent 4a595cf749
commit ef3e7c1c89
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 1 additions and 1 deletions

View File

@ -237,7 +237,7 @@ func TestDistinct(t *testing.T) {
departname := testEngine.GetTableMapper().Obj2Table("Departname")
err = testEngine.Distinct(departname).Find(&users)
assert.NoError(t, err)
assert.EqualValues(t, 2, len(users))
assert.EqualValues(t, 1, len(users))
fmt.Println(users)