fix race in tests
fix race in tests

Signed-off-by: Victor Vieux <ce584ac70734cfa5a848cd28039798932c7ea675@docker.com>

rancher/swarm,londoncalling/docker.github.io,FollowMyDev/swarm,bdwill/docker.github.io,anweiss/docker.github.io,docker/docker.github.io,parapsyche/swarm,christophelec/swarm,megamsys/swarm,auzias/swarm,shin-/docker.github.io,CodeNow/swarm,joaofnfernandes/docker.github.io,denverdino/swarm,Aorjoa/swarm,bdwill/docker.github.io,LukasBacigal/swarm,aduermael/docker.github.io,docker/docker.github.io,kunalkushwaha/swarm,JimGalasyn/docker.github.io,auzias/swarm,mgoelzer/swarm,raoofm/swarm,dnephin/swarm,shubheksha/docker.github.io,alexisbellido/docker.github.io,troy0820/docker.github.io,liubin/swarm,echupriyanov/swarm,denverdino/docker.github.io,LukasBacigal/swarm,parapsyche/swarm,beni55/swarm-1,ehazlett/swarm,joeuo/docker.github.io,troy0820/docker.github.io,shubheksha/docker.github.io,allencloud/swarm,morpheyesh/swarm,NunoEdgarGub1/swarm,allencloud/swarm,BSWANG/denverdino.github.io,rav121/swarm,bsmr-docker/swarm,LuisBosquez/docker.github.io,barais/swarm,danix800/docker.github.io,thaJeztah/docker.github.io,thaJeztah/docker.github.io,alexisbellido/docker.github.io,adouang/swarm,sanscontext/docker.github.io,ehazlett/swarm,anweiss/docker.github.io,docker-zh/docker.github.io,aduermael/docker.github.io,jzwlqx/denverdino.github.io,JimGalasyn/docker.github.io,zkcrescent/swarm,phiroict/docker,jzwlqx/denverdino.github.io,sanscontext/docker.github.io,doronp/swarm,beni55/swarm-1,jimmycmh/swarm,rchicoli/swarm,sfsmithcha/swarm,swarm-hooks/swarm,BSWANG/denverdino.github.io,xFragger/swarm,linecheng/swarm,BSWANG/swarm,phiroict/docker,atlassian/swarm,joaofnfernandes/docker.github.io,joaofnfernandes/docker.github.io,joeuo/docker.github.io,troy0820/docker.github.io,phiroict/docker,joaofnfernandes/docker.github.io,JimGalasyn/docker.github.io,shin-/docker.github.io,adouang/swarm,kyhavlov/swarm,alexisbellido/docker.github.io,CiaranCostello/swarm,gdevillele/docker.github.io,dnephin/swarm,mgoelzer/swarm,docker/docker.github.io,CodeNow/swarm,ricca742/swarm,barais/swarm,thaJeztah/docker.github.io,morpheyesh/swarm,alexisbellido/docker.github.io,anweiss/docker.github.io,docker-zh/docker.github.io,rillig/docker.github.io,zkcrescent/swarm,thaJeztah/docker.github.io,shin-/docker.github.io,denverdino/swarm,denverdino/docker.github.io,johnstep/docker.github.io,cpuguy83/swarm,MHBauer/swarm,docker/docker.github.io,joeuo/docker.github.io,rillig/docker.github.io,riuvshin/swarm,rchicoli/swarm,CiaranCostello/swarm,bdwill/docker.github.io,LuisBosquez/docker.github.io,LuisBosquez/docker.github.io,resouer/swarm,rillig/docker.github.io,rancher/swarm,sanscontext/docker.github.io,atlassian/swarm,menglingwei/denverdino.github.io,johnstep/docker.github.io,londoncalling/docker.github.io,fugr/swarm,MHBauer/swarm,denverdino/denverdino.github.io,LuisBosquez/docker.github.io,ezrasilvera/swarm,ricca742/swarm,ch3lo/swarm,denverdino/docker.github.io,joeuo/docker.github.io,gdevillele/docker.github.io,denverdino/denverdino.github.io,ezrasilvera/swarm,Spritekin/swarm,gdevillele/docker.github.io,christophelec/swarm,xFragger/swarm,moxiegirl/swarm,schmunk42/swarm,sanscontext/docker.github.io,alexisbellido/docker.github.io,rillig/docker.github.io,johnstep/docker.github.io,londoncalling/docker.github.io,sanscontext/docker.github.io,NunoEdgarGub1/swarm,EderRoger/swarm,Aorjoa/swarm,BSWANG/denverdino.github.io,BSWANG/denverdino.github.io,gradywang/swarm,denverdino/docker.github.io,JimGalasyn/docker.github.io,Spritekin/swarm,BSWANG/denverdino.github.io,liubin/swarm,moxiegirl/swarm,docker-zh/docker.github.io,danix800/docker.github.io,u2mejc/swarm,gdevillele/docker.github.io,aduermael/docker.github.io,qianzhangxa/swarm,JimGalasyn/docker.github.io,shin-/docker.github.io,joeuo/docker.github.io,menglingwei/denverdino.github.io,thaJeztah/docker.github.io,sfsmithcha/swarm,johnstep/docker.github.io,iaintshine/swarm,docker-zh/docker.github.io,echupriyanov/swarm,bdwill/docker.github.io,denverdino/denverdino.github.io,kunalkushwaha/swarm,shot/swarm,megamsys/swarm,danix800/docker.github.io,anweiss/docker.github.io,londoncalling/docker.github.io,danix800/docker.github.io,menglingwei/denverdino.github.io,fugr/swarm,joaofnfernandes/docker.github.io,menglingwei/denverdino.github.io,BSWANG/swarm,docker/docker.github.io,denverdino/docker.github.io,raoofm/swarm,phiroict/docker,shubheksha/docker.github.io,ch3lo/swarm,johnstep/docker.github.io,jzwlqx/denverdino.github.io,resouer/swarm,jimmycmh/swarm,anweiss/docker.github.io,docker-zh/docker.github.io,jzwlqx/denverdino.github.io,qianzhangxa/swarm,denverdino/denverdino.github.io,menglingwei/denverdino.github.io,phiroict/docker,LuisBosquez/docker.github.io,cpuguy83/swarm,aduermael/docker.github.io,shot/swarm,riuvshin/swarm,bsmr-docker/swarm,jzwlqx/denverdino.github.io,shin-/docker.github.io,linecheng/swarm,iaintshine/swarm,FollowMyDev/swarm,u2mejc/swarm,shubheksha/docker.github.io,kyhavlov/swarm,shubheksha/docker.github.io,rav121/swarm,swarm-hooks/swarm,pdevine/swarm,gdevillele/docker.github.io,londoncalling/docker.github.io,troy0820/docker.github.io,gradywang/swarm,denverdino/denverdino.github.io,doronp/swarm,pdevine/swarm,bdwill/docker.github.io,schmunk42/swarm,EderRoger/swarm