|
@ -130,7 +130,7 @@ var _ = Describe("Connection", func() { |
|
|
Expect(err).ToNot(HaveOccurred()) |
|
|
Expect(err).ToNot(HaveOccurred()) |
|
|
defer serverConn.Close() |
|
|
defer serverConn.Close() |
|
|
|
|
|
|
|
|
str, err := conn.OpenStream() |
|
|
str, err := conn.OpenStream(context.Background()) |
|
|
Expect(err).ToNot(HaveOccurred()) |
|
|
Expect(err).ToNot(HaveOccurred()) |
|
|
_, err = str.Write([]byte("foobar")) |
|
|
_, err = str.Write([]byte("foobar")) |
|
|
Expect(err).ToNot(HaveOccurred()) |
|
|
Expect(err).ToNot(HaveOccurred()) |
|
@ -251,7 +251,7 @@ var _ = Describe("Connection", func() { |
|
|
for _, c := range []tpt.CapableConn{serverConn1, serverConn2} { |
|
|
for _, c := range []tpt.CapableConn{serverConn1, serverConn2} { |
|
|
go func(conn tpt.CapableConn) { |
|
|
go func(conn tpt.CapableConn) { |
|
|
defer GinkgoRecover() |
|
|
defer GinkgoRecover() |
|
|
str, err := conn.OpenStream() |
|
|
str, err := conn.OpenStream(context.Background()) |
|
|
Expect(err).ToNot(HaveOccurred()) |
|
|
Expect(err).ToNot(HaveOccurred()) |
|
|
defer str.Close() |
|
|
defer str.Close() |
|
|
_, err = str.Write(data) |
|
|
_, err = str.Write(data) |
|
@ -315,7 +315,7 @@ var _ = Describe("Connection", func() { |
|
|
defer GinkgoRecover() |
|
|
defer GinkgoRecover() |
|
|
conn, err := ln.Accept() |
|
|
conn, err := ln.Accept() |
|
|
Expect(err).ToNot(HaveOccurred()) |
|
|
Expect(err).ToNot(HaveOccurred()) |
|
|
str, err := conn.OpenStream() |
|
|
str, err := conn.OpenStream(context.Background()) |
|
|
Expect(err).ToNot(HaveOccurred()) |
|
|
Expect(err).ToNot(HaveOccurred()) |
|
|
str.Write([]byte("foobar")) |
|
|
str.Write([]byte("foobar")) |
|
|
}() |
|
|
}() |
|
|