cli/test: trim newline char in checkNextLine

This commit is contained in:
Evgenii Stratonikov 2020-12-04 11:03:39 +03:00
parent d71e45bcc5
commit bb316f4652

View file

@ -132,7 +132,7 @@ func (e *executor) GetTransaction(t *testing.T, h util.Uint256) (*transaction.Tr
func (e *executor) getNextLine(t *testing.T) string {
line, err := e.Out.ReadString('\n')
require.NoError(t, err)
return line
return strings.TrimSuffix(line, "\n")
}
func (e *executor) checkNextLine(t *testing.T, expected string) {