awslogs: fix flaky TestLogBlocking unit test
awslogs: fix flaky TestLogBlocking unit test

TestLogBlocking is intended to test that the Log method blocks by
default.  It does this by mocking out the internals of the
awslogs.logStream and replacing one of its internal channels with one
that is controlled by the test.  The call to Log occurs inside a
goroutine.  Go may or may not schedule the goroutine immediately and the
blocking may or may not be observed outside the goroutine immediately
due to decisions made by the Go runtime.  This change adds a small
timeout for test failure so that the Go runtime has the opportunity to
run the goroutine before the test fails.

Signed-off-by: Samuel Karp <27dcd6a501543ec3b1562a760aeb4d69ec9845d1@amazon.com>

vdemeester/docker,justincormack/docker,moby/moby,docker/docker,dims/docker,jthelin/docker,konstruktoid/docker-upstream,flavio/docker,pradipd/moby,flavio/docker,AkihiroSuda/docker,gnailuy/docker,vdemeester/docker,jthelin/docker,trebonian/docker,cpuguy83/docker,moby/moby,trebonian/docker,konstruktoid/docker-upstream,kojiromike/docker,Ramzec/docker,moby/moby,mahak/docker,paralin/docker,moul/docker,mahak/docker,thaJeztah/docker,thaJeztah/docker,justincormack/docker,dims/docker,moby/moby,yongtang/docker,yosifkit/docker,pradipd/moby,cpuguy83/docker,ibuildthecloud/docker,paralin/docker,jimjag/docker,jimjag/docker,moul/docker,Ramzec/docker,jvanz/docker,jameszhan/docker,ibuildthecloud/docker,flavio/docker,Mokolea/docker,AkihiroSuda/docker,dims/docker,SvenDowideit/docker,nalind/docker,nawawi/docker,SvenDowideit/docker,yosifkit/docker,konstruktoid/docker-1,jameszhan/docker,bearstech/moby,estesp/docker,konstruktoid/docker-1,bearstech/moby,jvanz/docker,jimjag/docker,ibuildthecloud/docker,paralin/docker,konstruktoid/docker-upstream,nalind/docker,konstruktoid/docker-1,docker/docker,Mokolea/docker,trebonian/docker,mahak/docker,kojiromike/docker,jvanz/docker,SvenDowideit/docker,thaJeztah/docker,flavio/docker,djs55/docker,nawawi/docker,Ramzec/docker,docker/docker,AkihiroSuda/docker,jimjag/docker,nalind/docker,kojiromike/docker,Mokolea/docker,bearstech/moby,thaJeztah/docker,yosifkit/docker,jameszhan/docker,ibuildthecloud/docker,gnailuy/docker,estesp/docker,gnailuy/docker,trebonian/docker,mahak/docker,yosifkit/docker,konstruktoid/docker-upstream,bearstech/moby,paralin/docker,ibuildthecloud/docker,yongtang/docker,nawawi/docker,djs55/docker,cpuguy83/docker,estesp/docker,cpuguy83/docker,nalind/docker,Ramzec/docker,AkihiroSuda/docker,justincormack/docker,gnailuy/docker,moul/docker,yongtang/docker,nawawi/docker,moul/docker,pradipd/moby,Mokolea/docker,djs55/docker,vdemeester/docker