From c3ada38e68c792668ec931da339b81bd8dd6b21b Mon Sep 17 00:00:00 2001 From: Rob Watson Date: Tue, 21 Jun 2022 20:49:39 +0200 Subject: [PATCH] Add TODO --- logs/watcher_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/logs/watcher_test.go b/logs/watcher_test.go index 6da08c6..d37dd9c 100644 --- a/logs/watcher_test.go +++ b/logs/watcher_test.go @@ -109,6 +109,8 @@ func TestWatcherClosedChannel(t *testing.T) { } func TestWatcherWithPodWatcher(t *testing.T) { + // TODO: use watcher.Close() to clean up watcher instead of relying on + // context, which leads to occasional race conditions in tests. ctx, cancel := context.WithTimeout(context.Background(), time.Second*2) defer cancel()