add a context to Listener.Accept

This commit is contained in:
Marten Seemann 2019-05-28 16:03:38 +02:00
parent 8dbe1684be
commit 12bce1caaa
21 changed files with 74 additions and 40 deletions

View file

@ -1,6 +1,7 @@
package self_test
import (
"context"
"fmt"
"io/ioutil"
"math/rand"
@ -25,7 +26,7 @@ var _ = Describe("Connection ID lengths tests", func() {
go func() {
defer GinkgoRecover()
for {
sess, err := ln.Accept()
sess, err := ln.Accept(context.Background())
if err != nil {
return
}