From 674fcca3e055e8b667e5b307ee250441460ad592 Mon Sep 17 00:00:00 2001 From: Ka-Hing Cheung Date: Tue, 12 Nov 2019 22:44:28 -0800 Subject: [PATCH] signal done even if test fails --- internal/goofys_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/goofys_test.go b/internal/goofys_test.go index 4f684184..2f5d4a82 100644 --- a/internal/goofys_test.go +++ b/internal/goofys_test.go @@ -2579,17 +2579,18 @@ func (s *GoofysTest) TestReadDirLookUp(t *C) { for i := 0; i < 10; i++ { wg.Add(2) go func() { + defer wg.Done() s.readDirIntoCache(t, fuseops.RootInodeID) - wg.Done() }() go func() { + defer wg.Done() + lookup := fuseops.LookUpInodeOp{ Parent: fuseops.RootInodeID, Name: "file1", } err := s.fs.LookUpInode(nil, &lookup) t.Assert(err, IsNil) - wg.Done() }() } wg.Wait()