Hello, when I exec one sql many times, I got the error:
--- FAIL: TestMysqlProxy_getItemByID (0.00s)
--- FAIL: TestMysqlProxy_getItemByID/getItemByID_OK (0.00s)
main_test.go:49: err: all expectations were already fulfilled, call to Query 'SELECT id, name FROM user where id = ?' with args [{Name: Ordinal:1 Value:1}] was not expected, got: {ID:0 Name:}
main_test.go:51: MysqlProxy.getItemByID() error = all expectations were already fulfilled, call to Query 'SELECT id, name FROM user where id = ?' with args [{Name: Ordinal:1 Value:1}] was not expected, wantErr false
Hello, when I exec one sql many times, I got the error: --- FAIL: TestMysqlProxy_getItemByID (0.00s) --- FAIL: TestMysqlProxy_getItemByID/getItemByID_OK (0.00s) main_test.go:49: err: all expectations were already fulfilled, call to Query 'SELECT id, name FROM user where id = ?' with args [{Name: Ordinal:1 Value:1}] was not expected, got: {ID:0 Name:} main_test.go:51: MysqlProxy.getItemByID() error = all expectations were already fulfilled, call to Query 'SELECT id, name FROM user where id = ?' with args [{Name: Ordinal:1 Value:1}] was not expected, wantErr false
my code![image](https://user-images.githubusercontent.com/30587296/96688988-65ecf080-13b4-11eb-8e25-ca2bdcffb582.png)
unit test code![image](https://user-images.githubusercontent.com/30587296/96689158-9c2a7000-13b4-11eb-85aa-4891e598965b.png)