From a7bc949e0a01feb17d92feba112ce1e94442f687 Mon Sep 17 00:00:00 2001 From: Tim Anema Date: Mon, 3 Apr 2017 09:56:13 -0400 Subject: [PATCH] fixing tests --- kit/file_watcher_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kit/file_watcher_test.go b/kit/file_watcher_test.go index 9dfca405..6136fa70 100644 --- a/kit/file_watcher_test.go +++ b/kit/file_watcher_test.go @@ -126,7 +126,8 @@ func (suite *FileWatcherTestSuite) TestReloadConfig() { go newWatcher.watchFsEvents() configWatcher.Events <- fsnotify.Event{Name: goodEnvirontmentPath, Op: fsnotify.Write} - assert.Equal(suite.T(), len(reloadChan), 1) + _, ok := <-newWatcher.done + assert.False(suite.T(), ok) assert.Equal(suite.T(), newWatcher.IsWatching(), false) }