|
@@ -220,7 +220,6 @@ func TestMenuConnection(t *testing.T) {
|
|
|
}
|
|
|
|
|
|
time.Sleep(time.Millisecond)
|
|
|
- runtime.Gosched()
|
|
|
if d.Disconnected {
|
|
|
t.Errorf("Disconnected")
|
|
|
}
|
|
@@ -330,5 +329,6 @@ func TestMenuConnection(t *testing.T) {
|
|
|
// output = string(buffer[:r])
|
|
|
server.Close()
|
|
|
client.Close()
|
|
|
- close(d.writerChannel)
|
|
|
+ d.Write("\x00")
|
|
|
+ time.Sleep(time.Millisecond)
|
|
|
}
|