Fix stream closing tests

pull/132/head
Andy Wang 4 years ago
parent 54bca721e8
commit ef040b0115

@ -281,7 +281,7 @@ func TestStream_Close(t *testing.T) {
if err != nil { if err != nil {
t.Errorf("can't read residual data %v", err) t.Errorf("can't read residual data %v", err)
} }
time.Sleep(100 * time.Microsecond) time.Sleep(100 * time.Millisecond)
if sI, _ := sesh.streams.Load(stream.(*Stream).id); sI != nil { if sI, _ := sesh.streams.Load(stream.(*Stream).id); sI != nil {
t.Error("stream still exists") t.Error("stream still exists")
return return

Loading…
Cancel
Save