mirror of https://github.com/cbeuw/Cloak
Fix stream closing tests
This commit is contained in:
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…
Reference in New Issue