Skip to content

Commit 569dc7b

Browse files
author
Vladimir Kotal
committed
-1
1 parent a672b34 commit 569dc7b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

opengrok-tools/src/test/python/test_command.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,8 @@ def test_long_output():
192192
assert cmd.getstate() == Command.FINISHED
193193
assert cmd.getretcode() == 0
194194
assert cmd.geterroutput() is None
195-
assert len(cmd.getoutputstr()) == num_lines * (line_length + 1)
195+
# -1 because getoutputstr() strips the string
196+
assert len(cmd.getoutputstr()) == num_lines * (line_length + 1) - 1
196197

197198

198199
@pytest.mark.skipif(not os.name.startswith("posix"), reason="requires posix")

0 commit comments

Comments
 (0)