From 8fe463a3563b3818ef4fe2cda1528fe1969e7349 Mon Sep 17 00:00:00 2001 From: quobix Date: Thu, 1 Feb 2024 11:15:40 -0800 Subject: [PATCH] bumped coverage Signed-off-by: quobix --- index/rolodex_file_loader_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/index/rolodex_file_loader_test.go b/index/rolodex_file_loader_test.go index 3240a54..f121e0e 100644 --- a/index/rolodex_file_loader_test.go +++ b/index/rolodex_file_loader_test.go @@ -124,6 +124,15 @@ func TestRolodexLocalFS_BadAbsFile(t *testing.T) { assert.Error(t, e) } +func TestRolodexLocalFS_ErrorOutWaiter(t *testing.T) { + + lfs := &LocalFS{indexConfig: nil} + lfs.processingFiles.Store("/test.yaml", &waiterLocal{}) + f, e := lfs.Open("/test.yaml") + assert.Nil(t, f) + assert.Error(t, e) +} + func TestRolodexLocalFile_BadParse(t *testing.T) { lf := &LocalFile{}