You've already forked testing-go-code-with-postgres
mirror of
https://github.com/xorcare/testing-go-code-with-postgres.git
synced 2025-06-30 23:23:40 +02:00
Add example of tests with isolated schema
This commit is contained in:
@ -34,8 +34,7 @@ func (r *UserRepository) ReadUser(ctx context.Context, userID uuid.UUID) (User,
|
||||
|
||||
err := row.Scan(&user.ID, &user.Username, &user.CreatedAt)
|
||||
if err != nil {
|
||||
const format = "failed selection of User from database: %v"
|
||||
|
||||
const format = "failed selection of User from database: %w"
|
||||
return User{}, fmt.Errorf(format, err)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user