This commit is contained in:
iamqizhao
2015-07-29 11:40:08 -07:00
parent 4179d89d53
commit 671e92a55a

View File

@ -364,7 +364,7 @@ func TestMaxStreams(t *testing.T) {
// Have a pending stream which takes all streams quota. // Have a pending stream which takes all streams quota.
s, err := ct.NewStream(context.Background(), callHdr) s, err := ct.NewStream(context.Background(), callHdr)
if err != nil { if err != nil {
t.Fatalf("failed to open stream: %v", err) t.Fatalf("Failed to open stream: %v", err)
} }
cc, ok := ct.(*http2Client) cc, ok := ct.(*http2Client)
if !ok { if !ok {
@ -418,7 +418,7 @@ func TestMaxStreams(t *testing.T) {
t.Fatalf("streamsQuota.acquire() is not readable.") t.Fatalf("streamsQuota.acquire() is not readable.")
} }
if _, err := ct.NewStream(context.Background(), callHdr); err != nil { if _, err := ct.NewStream(context.Background(), callHdr); err != nil {
t.Fatalf("failed to open stream: %v", err) t.Fatalf("Failed to open stream: %v", err)
} }
ct.Close() ct.Close()
server.stop() server.stop()