Skip to content

Commit

Permalink
Check of the content of the line
Browse files Browse the repository at this point in the history
  • Loading branch information
Nino Khodabandeh committed Apr 26, 2016
1 parent a7c1263 commit 86ea7df
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tail_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,11 @@ func TestStopAtEOF(t *testing.T) {
tail := tailTest.StartTail("test.txt", Config{Follow: true, Location: nil})

// read "hello"
<-tail.Lines
line := <-tail.Lines
if line.Text != "hello" {
t.Errorf("Expected to get 'hello', got '%s' instead", line)
}

<-time.After(100 * time.Millisecond)
tailTest.VerifyTailOutput(tail, []string{"there", "world"}, false)
tail.StopAtEOF()
tailTest.Cleanup(tail, true)
Expand Down

0 comments on commit 86ea7df

Please sign in to comment.