gorm-ut
gorm-ut copied to clipboard
gorm v1.9.10 failed
I use the latest version of gorm and run test, it shows:
call to database transaction Begin, was not expected, next expectation is: ExpectedQuery => expecting Query, QueryContext or QueryRow which:
- matches sql: 'INSERT INTO "person" \("id","name"\) VALUES \(\$1,\$2\) RETURNING "person"\."id"'
- is with arguments:
0 - 9a9508c1-440a-46e4-9061-9f1817968e6c
1 - test-name
I have the same problems.
Same problem here
Same problem here
I use the latest version of gorm and run test, it shows:
call to database transaction Begin, was not expected, next expectation is: ExpectedQuery => expecting Query, QueryContext or QueryRow which: - matches sql: 'INSERT INTO "person" \("id","name"\) VALUES \(\$1,\$2\) RETURNING "person"\."id"' - is with arguments: 0 - 9a9508c1-440a-46e4-9061-9f1817968e6c 1 - test-name
use s.mock.ExpectBegin() and s.mock.ExpectCommit()