Skip to content

Commit

Permalink
signal done even if test fails
Browse files Browse the repository at this point in the history
  • Loading branch information
kahing committed Nov 13, 2019
1 parent 3d8c910 commit 674fcca
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/goofys_test.go
Expand Up @@ -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()
Expand Down

0 comments on commit 674fcca

Please sign in to comment.