diff --git a/internal/db/db_test/db.go b/internal/db/db_test/db.go index 4933d16532..79097a19c1 100644 --- a/internal/db/db_test/db.go +++ b/internal/db/db_test/db.go @@ -23,6 +23,12 @@ func NewTestUser() (*TestUser, error) { }, nil } +func AllocTestUser() TestUser { + return TestUser{ + StoreTestUser: &StoreTestUser{}, + } +} + // Clone is useful when you're retrying transactions and you need to send the user several times func (u *TestUser) Clone() *TestUser { s := proto.Clone(u.StoreTestUser)