Fix race in `TestApiSwarmRestartCluster`
Fix race in `TestApiSwarmRestartCluster`

In `TestApiSwarmRestartCluster`, it's calling `checkClusterHealth`.
`checkClusterHealth` calls `d.info()`, which will return an error if
there is no cluster leader... problem is `checkClusterHealth` is doing a
nil error assertion w/o giving any time for a leader to be elected.

This moves the `d.info()` call into a `waitAndAssert` using the default
reconciliation timeout.

It also moves some other checks into a `waitAndAssert` to give the
cluster enough time to come back up.

Signed-off-by: Brian Goff <dc73d0991b982a8303e713ef531a313af77e242a@gmail.com>

dims/docker,lixiaobing1/docker,mikedougherty/docker,mtesselH/docker,rhatdan/docker,haveatry/docker,rremer/moby,gschaetz/moby,erikstmartin/docker,haveatry/docker,noironetworks/docker,yp-engineering/docker,kojiromike/docker,kolyshkin/moby,thaJeztah/docker,dsheets/moby,diogomonica/docker,ripcurld0/moby,scotttlin/docker,justincormack/docker,HuKeping/docker,darrenstahlmsft/docker,mkumatag/docker,asbjornenge/docker,erikh/docker,kencochrane/docker,tmp6154/docker,tmp6154/docker,tophj-ibm/moby,hypriot/docker,harche/docker,djs55/docker,cyphar/docker,laijs/docker,scotttlin/docker,coreos/docker,rhatdan/docker,rancher/docker,brahmaroutu/docker,kencochrane/docker,tianon/docker,duglin/docker,tophj-ibm/moby,mtrmac/docker,michelvocks/docker,yosifkit/docker,mtanlee/docker,endophage/docker,moby/moby,bearstech/moby,thaJeztah/docker,moypray/docker,rhatdan/docker,tophj-ibm/moby,liaoqingwei/docker,dmcgowan/docker,liaoqingwei/docker,gjaskiewicz/moby,miminar/docker,nawawi/docker,mstanleyjones/docker,moul/docker,erikstmartin/docker,danyalKhaliq10p/moby,KingEmet/docker,jvanz/docker,xiekeyang/docker,moby/moby,miminar/docker,xiaods/docker,cpuguy83/docker,tagomoris/docker,YuPengZTE/docker,mtrmac/docker,flavio/docker,nawawi/docker,ibuildthecloud/docker,akira-baruah/docker,Ramzec/docker,dims/docker,mikedougherty/docker,msabansal/docker,jameszhan/docker,jameszhan/docker,shishir-a412ed/docker,bearstech/moby,bonczj/moby-json-file-logger,danyalKhaliq10p/moby,jwhonce/docker,HideoYamauchi/docker,imkin/moby,maxamillion/docker,13W/docker,jhorwit2/docker,mikebrow/docker,gnailuy/docker,johnstep/moby-moby,darrenstahlmsft/moby,whuwxl/docker,shhsu/docker,xiaods/docker,allencloud/docker,kolyshkin/docker,icaoweiwei/docker,dccurtis/docker,mstanleyjones/docker,pradipd/moby,Ramzec/docker,yasiramin10p/moby,AkihiroSuda/docker,nawawi/docker,jimjag/docker,estesp/docker,mohmost12/docker,srust/docker,mkumatag/docker,resin-io/docker,kolyshkin/docker,x1022as/docker,noironetworks/docker,gjaskiewicz/moby,yongtang/docker,diogomonica/docker,miminar/docker,amatsus/docker,mtanlee/docker,tophj-ibm/docker,dgageot/docker,ibuildthecloud/docker,pradipd/moby,brahmaroutu/docker,stevvooe/docker,dgageot/docker,mike1729/docker,allencloud/docker,sarnautov/moby,gnailuy/docker,justincormack/docker,yummypeng/docker,flavio/docker,mahak/docker,paralin/docker,tklauser/docker,POLJM242/docker,thtanaka/docker,bonczj/moby-json-file-logger,ripcurld0/moby,shishir-a412ed/docker,kunalkushwaha/docker,AkihiroSuda/docker,trebonian/docker,resin-io/docker,portworx/docker,dsheets/moby,konstruktoid/docker-upstream,mtesselH/docker,darrenstahlmsft/docker,tmp6154/docker,madhanrm/docker,konstruktoid/docker-upstream,KarthikNayak/docker,q384566678/docker,ibuildthecloud/docker,coolljt0725/docker,dims/docker,vdemeester/docker,michael-holzheu/docker,portworx/docker,msabansal/docker,yosifkit/docker,nalind/docker,dongjoon-hyun/docker,jhorwit2/docker,maxamillion/docker,yongtang/docker,pramodhkp/moby,yongtang/docker,bonczj/moby-json-file-logger,catinthesky/docker,tonistiigi/docker,amatsus/docker,mohmost12/docker,moby/moby,mohmost12/docker,tagomoris/docker,bearstech/moby,thtanaka/docker,ColinHebert/docker,ColinHebert/docker,tklauser/docker,tophj-ibm/docker,qudongfang/docker,brahmaroutu/docker,mtrmac/docker,cyphar/docker,jthelin/docker,laijs/moby,ajaymdesai/docker,paralin/docker,YuPengZTE/docker,Syntaxide/docker,x1022as/docker,moypray/docker,rremer/moby,afein/docker,eskaaren/docker,dccurtis/docker,13W/docker,splunk/docker,docker/docker,darrenstahlmsft/docker,mixja/docker,xuxinkun/docker,tklauser/docker,konstruktoid/docker-1,asbjornenge/docker,fcrisciani/docker,resin-io/docker,crosbymichael/docker,mikebrow/docker,ibuildthecloud/docker,eskaaren/docker,michelvocks/docker,naveed-jamil-tenpearls/moby,konstruktoid/docker-1,hqhq/moby,lixiaobing1/docker,laijs/docker,dmcgowan/docker,JMesser81/docker,Syntaxide/docker,paralin/docker,portworx/docker,mikebrow/docker,ibuildthecloud/docker,hypriot/docker,konstruktoid/docker-upstream,paralin/docker,JMesser81/docker,vdemeester/docker,moby/moby,dccurtis/docker,unclejack/docker,hqhq/moby,johnstep/moby-moby,fcrisciani/docker,SvenDowideit/docker,dperny/docker,moul/docker,harche/docker,johnstep/moby-moby,mtanlee/docker,whuwxl/docker,sarnautov/moby,kunalkushwaha/docker,asbjornenge/docker,vdemeester/docker,ajaymdesai/docker,rremer/moby,JMesser81/docker,PatrickLang/moby,raja-sami-10p/moby,bearstech/moby,gnailuy/docker,prertik/docker,harche/docker,cloudflare/docker,kunalkushwaha/docker,cpuguy83/docker,mahak/docker,shhsu/docker,mkumatag/docker,imkin/moby,tonistiigi/docker,PatrickLang/moby,kolyshkin/moby,nalind/docker,docker/docker,Mokolea/docker,KarthikNayak/docker,kolyshkin/moby,duglin/docker,13W/docker,mixja/docker,charleszheng44/moby,mahak/docker,charleszheng44/moby,jlhawn/docker,flavio/docker,kojiromike/docker,laijs/moby,djs55/docker,lixiaobing10051267/docker,flavio/docker,naveed-jamil-tenpearls/moby,unclejack/docker,scotttlin/docker,jimjag/docker,raja-sami-10p/moby,KingEmet/docker,dongjoon-hyun/docker,haveatry/docker,PatrickLang/moby,whuwxl/docker,srust/docker,danyalKhaliq10p/moby,michael-holzheu/docker,tophj-ibm/docker,pramodhkp/moby,amatsus/docker,yasiramin10p/moby,yummypeng/docker,catinthesky/docker,yosifkit/docker,ndeloof/docker,trebonian/docker,SvenDowideit/docker,docker/docker,alfred-landrum/docker,HideoYamauchi/docker,cpuguy83/docker,Ramzec/docker,duglin/docker,lixiaobing1/docker,cloudflare/docker,KingEmet/docker,tagomoris/docker,sterchelen/docker,kencochrane/docker,q384566678/docker,Mokolea/docker,POLJM242/docker,lixiaobing10051267/docker,mixja/docker,konstruktoid/docker-1,cloudflare/docker,yp-engineering/docker,dsheets/moby,mike1729/docker,naveed-jamil-tenpearls/moby,mike1729/docker,afein/docker,x1022as/docker,lixiaobing10051267/docker,q384566678/docker,eskaaren/docker,alfred-landrum/docker,rancher/docker,xiekeyang/docker,diogomonica/docker,yosifkit/docker,noironetworks/docker,AkihiroSuda/docker,icaoweiwei/docker,afein/docker,moul/docker,sfsmithcha/docker,stevvooe/docker,prertik/docker,jlhawn/docker,jhorwit2/docker,sdurrheimer/docker,cpuguy83/docker,estesp/docker,mtesselH/docker,maxamillion/docker,Mokolea/docker,hqhq/moby,jwhonce/docker,raja-sami-10p/moby,xuxinkun/docker,yp-engineering/docker,catinthesky/docker,jvanz/docker,moypray/docker,thaJeztah/docker,jwhonce/docker,ffoysal/docker,laijs/moby,coreos/docker,gschaetz/moby,sterchelen/docker,qudongfang/docker,srust/docker,trebonian/docker,akira-baruah/docker,ColinHebert/docker,tonistiigi/docker,mikedougherty/docker,msabansal/docker,nawawi/docker,jthelin/docker,sterchelen/docker,dperny/docker,dmcgowan/docker,jimjag/docker,laijs/docker,alfred-landrum/docker,nalind/docker,mstanleyjones/docker,xiekeyang/docker,sfsmithcha/docker,shishir-a412ed/docker,madhanrm/docker,pradipd/moby,ffoysal/docker,HideoYamauchi/docker,jimjag/docker,jvanz/docker,xiaods/docker,dgageot/docker,icaoweiwei/docker,crosbymichael/docker,HuKeping/docker,konstruktoid/docker-upstream,rancher/docker,Syntaxide/docker,erikstmartin/docker,13W/docker,djs55/docker,prertik/docker,cyphar/docker,13W/docker,madhanrm/docker,endophage/docker,jlhawn/docker,ajaymdesai/docker,kojiromike/docker,estesp/docker,dongjoon-hyun/docker,justincormack/docker,charleszheng44/moby,erikh/docker,trebonian/docker,KarthikNayak/docker,splunk/docker,pramodhkp/moby,nalind/docker,AkihiroSuda/docker,xuxinkun/docker,SvenDowideit/docker,sdurrheimer/docker,yummypeng/docker,qudongfang/docker,Ramzec/docker,HuKeping/docker,Mokolea/docker,stevvooe/docker,unclejack/docker,moul/docker,gjaskiewicz/moby,allencloud/docker,erikh/docker,crosbymichael/docker,endophage/docker,mahak/docker,liaoqingwei/docker,darrenstahlmsft/moby,sarnautov/moby,coolljt0725/docker,splunk/docker,shhsu/docker,ndeloof/docker,michael-holzheu/docker,gnailuy/docker,coolljt0725/docker,hypriot/docker,thaJeztah/docker,coreos/docker,tianon/docker,ffoysal/docker,yasiramin10p/moby,imkin/moby,dperny/docker,fcrisciani/docker,darrenstahlmsft/moby,sdurrheimer/docker,thtanaka/docker,ndeloof/docker,jameszhan/docker,ripcurld0/moby,gschaetz/moby,sfsmithcha/docker,YuPengZTE/docker,michelvocks/docker