Still having issues when running tests with count.
@@ -240,6 +240,9 @@ func TestDoorInputConnection(t *testing.T) {
if hungup != -2 {
t.Errorf("Expected -2 (hangup), got %d", hungup)
}
+
+ d.Write("\x00")
+ time.Sleep(time.Millisecond)
func TestDisplayInput(t *testing.T) {
@@ -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)