From da6936580e628a28fb2fa688d36b0c4ec0511534 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Tue, 24 Oct 2017 15:58:05 +0800 Subject: [PATCH] fix tests --- processors_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/processors_test.go b/processors_test.go index d1364497..e8c27e89 100644 --- a/processors_test.go +++ b/processors_test.go @@ -1034,8 +1034,8 @@ type AfterInsertStruct struct { Id int64 } -func (a *AfterInsertStruct) AftertInsert(bean interface{}) { - if a.Id != 0 { +func (a *AfterInsertStruct) AfterInsert() { + if a.Id == 0 { panic("a.Id") } }