You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
unit test code
The text was updated successfully, but these errors were encountered:
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
unit test code
The text was updated successfully, but these errors were encountered: