We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe4165a commit b66c7d8Copy full SHA for b66c7d8
cmd_test.go
@@ -559,7 +559,7 @@ func TestStreamingMultipleLines(t *testing.T) {
559
}
560
561
// Write two short lines
562
- input := "foo\nbar\n"
+ input := "foo\nbar"
563
n, err := out.Write([]byte(input))
564
if n != len(input) {
565
t.Errorf("Write n = %d, expected %d", n, len(input))
@@ -581,6 +581,8 @@ func TestStreamingMultipleLines(t *testing.T) {
581
t.Errorf("got line: '%s', expected 'foo'", gotLine)
582
583
584
+ out.Flush()
585
+
586
// Get next line
587
select {
588
case gotLine = <-lines:
0 commit comments