(t *testing.T)
| 52 | } |
| 53 | |
| 54 | func TestWaitsForFileToExist(t *testing.T) { |
| 55 | tailTest := NewTailTest("waits-for-file-to-exist", t) |
| 56 | tail := tailTest.StartTail("test.txt", Config{}) |
| 57 | go tailTest.VerifyTailOutput(tail, []string{"hello", "world"}, false) |
| 58 | |
| 59 | <-time.After(100 * time.Millisecond) |
| 60 | tailTest.CreateFile("test.txt", "hello\nworld\n") |
| 61 | tailTest.Cleanup(tail, true) |
| 62 | } |
| 63 | |
| 64 | func TestWaitsForFileToExistRelativePath(t *testing.T) { |
| 65 | tailTest := NewTailTest("waits-for-file-to-exist-relative", t) |
nothing calls this directly
no test coverage detected
searching dependent graphs…