This commit is contained in:
iamqizhao
2015-07-29 11:41:19 -07:00
parent 671e92a55a
commit 3d051227b2

View File

@ -409,7 +409,7 @@ func TestMaxStreams(t *testing.T) {
// Close the pending stream so that the streams quota becomes available for the next new stream. // Close the pending stream so that the streams quota becomes available for the next new stream.
ct.CloseStream(s, nil) ct.CloseStream(s, nil)
select { select {
case i:=<-cc.streamsQuota.acquire(): case i := <-cc.streamsQuota.acquire():
if i != 1 { if i != 1 {
t.Fatalf("streamsQuota.acquire() got %d quota, want 1.", i) t.Fatalf("streamsQuota.acquire() got %d quota, want 1.", i)
} }