forked from TrueCloudLab/neoneo-go
cli/test: trim newline char in checkNextLine
This commit is contained in:
parent
d71e45bcc5
commit
bb316f4652
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ func (e *executor) GetTransaction(t *testing.T, h util.Uint256) (*transaction.Tr
|
||||||
func (e *executor) getNextLine(t *testing.T) string {
|
func (e *executor) getNextLine(t *testing.T) string {
|
||||||
line, err := e.Out.ReadString('\n')
|
line, err := e.Out.ReadString('\n')
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
return line
|
return strings.TrimSuffix(line, "\n")
|
||||||
}
|
}
|
||||||
|
|
||||||
func (e *executor) checkNextLine(t *testing.T, expected string) {
|
func (e *executor) checkNextLine(t *testing.T, expected string) {
|
||||||
|
|
Loading…
Reference in a new issue