Update test to work according to changes made to maxStreams behavior. (#1137)

This commit is contained in:
MakMukhi
2017-03-22 13:52:10 -07:00
committed by dfawley
parent c5a5dbc500
commit 9d8d0c6e0a

View File

@ -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():