add a context to Session.Accept{Uni}Stream

This commit is contained in:
Marten Seemann
2019-05-28 17:32:18 +01:00
parent f74082b2fb
commit 5550ba2c3b
28 changed files with 140 additions and 105 deletions

View File

@@ -71,7 +71,7 @@ var _ = Describe("Bidirectional streams", func() {
var wg sync.WaitGroup
wg.Add(numStreams)
for i := 0; i < numStreams; i++ {
str, err := sess.AcceptStream()
str, err := sess.AcceptStream(context.Background())
Expect(err).ToNot(HaveOccurred())
go func() {
defer GinkgoRecover()