From bb316f4652333679bbb240d3f2d21ad997dfa671 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Fri, 4 Dec 2020 11:03:39 +0300 Subject: [PATCH] cli/test: trim newline char in `checkNextLine` --- cli/executor_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/executor_test.go b/cli/executor_test.go index df8eb7529..c53231615 100644 --- a/cli/executor_test.go +++ b/cli/executor_test.go @@ -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) {