should be Fatal here

This commit is contained in:
Sridhar Ratnakumar 2014-04-28 14:46:18 -07:00
parent 473bd49874
commit 734bf58f78
1 changed files with 2 additions and 1 deletions

View File

@ -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:])
}