xfer: fix TestBackgroundPublisher

This commit is contained in:
Peter Bourgon
2015-09-29 13:32:52 +02:00
parent 7d52685b5f
commit b78be6a71b

View File

@@ -16,7 +16,7 @@ func TestBackgroundPublisher(t *testing.T) {
defer backgroundPublisher.Stop()
runtime.Gosched()
for i := 0; i < 10; i++ {
for i := 1; i <= 10; i++ {
err := backgroundPublisher.Publish(&bytes.Buffer{})
if err != nil {
t.Fatalf("%v", err)