go.tools/cmd/godoc: wait for analysis to complete in TestTypeAnalysis
go.tools/cmd/godoc: wait for analysis to complete in TestTypeAnalysis

LGTM=adg
R=golang-codereviews, adg
CC=golang-codereviews
https://golang.org/cl/157590043

4ad/tools,dmitris/tools,syreclabs/go-tools,dmitris/tools,maddyonline/tools,jdhenke/tools,josharian/tools,cmars/tools,maddyonline/tools,argandas/tools,4ad/tools,glasser/golang-tools,matryer/tools,springning/tools,argandas/tools,maddyonline/tools,glasser/golang-tools,glasser/golang-tools,sshetty10/tools,magiccao/tools,cw2018/tools,runcom/tools,josharian/tools,magiccao/tools,josharian/tools,nicot/tools,matryer/tools,golang/tools,cw2018/tools,cw2018/tools,springning/tools,sshetty10/tools,golang/tools,magiccao/tools,josharian/tools,magiccao/tools,sshetty10/tools,syreclabs/go-tools,maddyonline/tools,jdhenke/tools,matryer/tools,dmitris/tools,nicot/tools,matryer/tools,golang/tools,sshetty10/tools,syreclabs/go-tools,cmars/tools,glasser/golang-tools,golang/tools,runcom/tools,dmitris/tools,cw2018/tools,nicot/tools,springning/tools,cmars/tools,syreclabs/go-tools,cmars/tools,nicot/tools,argandas/tools,4ad/tools,runcom/tools,jdhenke/tools,golang/tools,runcom/tools,syreclabs/go-tools,argandas/tools,syreclabs/go-tools,springning/tools,jdhenke/tools