add file poller panic fix from 1.10.2

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
Brian Goff 2016-02-23 21:36:04 -05:00
parent d932514e7e
commit c8da8b3693
2 changed files with 1 additions and 20 deletions

View file

@ -93,24 +93,6 @@ func TestPollerClose(t *testing.T) {
t.Fatal(err)
}
select {
case _, open := <-w.Events():
if open {
t.Fatal("event chan should be closed")
}
default:
t.Fatal("event chan should be closed")
}
select {
case _, open := <-w.Errors():
if open {
t.Fatal("errors chan should be closed")
}
default:
t.Fatal("errors chan should be closed")
}
f, err := ioutil.TempFile("", "asdf")
if err != nil {
t.Fatal(err)