Skip to content

Commit 674fcca

Browse files
committed
signal done even if test fails
1 parent 3d8c910 commit 674fcca

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

internal/goofys_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2579,17 +2579,18 @@ func (s *GoofysTest) TestReadDirLookUp(t *C) {
25792579
for i := 0; i < 10; i++ {
25802580
wg.Add(2)
25812581
go func() {
2582+
defer wg.Done()
25822583
s.readDirIntoCache(t, fuseops.RootInodeID)
2583-
wg.Done()
25842584
}()
25852585
go func() {
2586+
defer wg.Done()
2587+
25862588
lookup := fuseops.LookUpInodeOp{
25872589
Parent: fuseops.RootInodeID,
25882590
Name: "file1",
25892591
}
25902592
err := s.fs.LookUpInode(nil, &lookup)
25912593
t.Assert(err, IsNil)
2592-
wg.Done()
25932594
}()
25942595
}
25952596
wg.Wait()

0 commit comments

Comments
 (0)