diff --git a/transport/transport_test.go b/transport/transport_test.go index 05686fb6..382675da 100644 --- a/transport/transport_test.go +++ b/transport/transport_test.go @@ -626,9 +626,9 @@ func TestMaxStreams(t *testing.T) { t.Fatalf("Client has not received the max stream setting in 5 seconds.") } cc.mu.Lock() - // cc.streamsQuota should be initialized once receiving the 1st setting frame from - // the server. - if cc.streamsQuota != nil { + // cc.maxStreams should be equal to 1 after having received settings frame from + // server. + if cc.maxStreams == 1 { cc.mu.Unlock() select { case <-cc.streamsQuota.acquire():