Skip to content

Commit

Permalink
fix Consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny committed Jun 23, 2019
1 parent a08b851 commit 5f6ebcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/consistency.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func CheckConsistencyFor(t *testing.T, beansToCheck ...interface{}) {
ptrToSliceValue := reflect.New(sliceType)
ptrToSliceValue.Elem().Set(sliceValue)

assert.NoError(t, x.Where(bean).Find(ptrToSliceValue.Interface()))
assert.NoError(t, x.Table(bean).Find(ptrToSliceValue.Interface()))
sliceValue = ptrToSliceValue.Elem()

for i := 0; i < sliceValue.Len(); i++ {
Expand Down

0 comments on commit 5f6ebcf

Please sign in to comment.