added Alloc function for test users

pull/165/head
Jim Lambert 6 years ago
parent 3469f09786
commit 19574d9a28

@ -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)

Loading…
Cancel
Save