test: Fix leaked goroutines
test: Fix leaked goroutines

Fixes #1708.

Signed-off-by: Lewis Marshall <748e1641a368164906d4a0c0e3965345453dcc93@lmars.net>

shads196770/flynn,jzila/flynn,schatt/flynn,josephglanville/flynn,pkdevbox/flynn,ozum/flynn,ozum/flynn,jzila/flynn,pkdevbox/flynn,TribeMedia/flynn,flynn/flynn,TribeMedia/flynn,lmars/flynn,josephglanville/flynn,supermario/flynn,schatt/flynn,lmars/flynn,philiplb/flynn,pkdevbox/flynn,TribeMedia/flynn,supermario/flynn,benbjohnson/flynn,lmars/flynn,schatt/flynn,philiplb/flynn,philiplb/flynn,clifff/flynn,rikur/flynn,flynn/flynn,benbjohnson/flynn,justintung/flynn,philiplb/flynn,TribeMedia/flynn,justintung/flynn,shads196770/flynn,shads196770/flynn,TribeMedia/flynn,benbjohnson/flynn,ozum/flynn,josephglanville/flynn,rikur/flynn,rikur/flynn,schatt/flynn,whouses/flynn,rikur/flynn,rikur/flynn,clifff/flynn,TribeMedia/flynn,clifff/flynn,whouses/flynn,pkdevbox/flynn,ozum/flynn,whouses/flynn,benbjohnson/flynn,benbjohnson/flynn,flynn/flynn,josephglanville/flynn,shads196770/flynn,jzila/flynn,supermario/flynn,benbjohnson/flynn,rikur/flynn,ozum/flynn,whouses/flynn,schatt/flynn,schatt/flynn,jzila/flynn,ozum/flynn,shads196770/flynn,clifff/flynn,whouses/flynn,lmars/flynn,flynn/flynn,jzila/flynn,clifff/flynn,josephglanville/flynn,justintung/flynn,justintung/flynn,supermario/flynn,whouses/flynn,supermario/flynn,pkdevbox/flynn,justintung/flynn,pkdevbox/flynn,flynn/flynn,jzila/flynn,shads196770/flynn,philiplb/flynn,lmars/flynn,supermario/flynn,clifff/flynn,justintung/flynn,josephglanville/flynn