mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-03 11:41:48 +00:00
cli/test: clean input buffer after execution
This commit is contained in:
parent
66402923b9
commit
f4cbb1ae74
2 changed files with 4 additions and 2 deletions
|
@ -184,7 +184,9 @@ func (e *executor) Run(t *testing.T, args ...string) {
|
|||
func (e *executor) run(args ...string) error {
|
||||
e.Out.Reset()
|
||||
e.Err.Reset()
|
||||
return e.CLI.Run(args)
|
||||
err := e.CLI.Run(args)
|
||||
e.In.Reset()
|
||||
return err
|
||||
}
|
||||
|
||||
func (e *executor) checkTxPersisted(t *testing.T, prefix ...string) (*transaction.Transaction, uint32) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue