Add back AssertExpectations
This commit is contained in:
parent
7aa08b9014
commit
d28ab5ae89
@ -136,9 +136,9 @@ func TestMockPreload(t *testing.T) {
|
||||
expect.Preload("Emails").Find(&in).Returns(out)
|
||||
db.Preload("Emails").Find(&in)
|
||||
|
||||
// if err := expect.AssertExpectations(); err != nil {
|
||||
// t.Error(err)
|
||||
// }
|
||||
if err := expect.AssertExpectations(); err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
|
||||
if !reflect.DeepEqual(in, out) {
|
||||
t.Error("In and out are not equal")
|
||||
|
Loading…
x
Reference in New Issue
Block a user