From 734bf58f78e33bb1c2866f2dde2a43284dbfb125 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Mon, 28 Apr 2014 14:46:18 -0700 Subject: [PATCH] should be Fatal here --- tail_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tail_test.go b/tail_test.go index ab3bfbe..a955f4d 100644 --- a/tail_test.go +++ b/tail_test.go @@ -393,9 +393,10 @@ func (t TailTest) VerifyTailOutput(tail *Tail, lines []string) { for idx, line := range lines { tailedLine, ok := <-tail.Lines if !ok { + // tail.Lines is closed and empty. err := tail.Err() if err != nil { - t.Errorf("tail ended with error: %v", err) + t.Fatalf("tail ended with error: %v", err) } t.Fatalf("tail ended early; expecting more: %v", lines[idx:]) }