=== RUN TestArticleRepo_Create
article_test.go:53:
Error Trace: /Users/macthinh/project/my-template-with-go/internal/data/article_test.go:53
Error: Expected nil, but got: &errors.errorString{s:"all expectations were already fulfilled, call to database transaction Begin was not expected"}
Test: TestArticleRepo_Create
--- FAIL: TestArticleRepo_Create (8.79s)
I implement code with dependency injection Like this:
article.go
and my file test article_test.go
What am I missing?