Ensure that one telnet client is connected in tests
This commit is contained in:
parent
8590f23039
commit
1f0dc64c35
|
@ -61,4 +61,8 @@ func TestTelnetOutput(t *testing.T) {
|
|||
if n != 42+(2*Cfg.Width+1)*Cfg.Height {
|
||||
t.Fatalf("Read %d from TCP, expected %d", n, 42+(2*Cfg.Width+1)*Cfg.Height)
|
||||
}
|
||||
|
||||
if GetNumberConnectedSessions("demo") != 1 {
|
||||
t.Fatalf("Expected one telnet client only, found %d", GetNumberConnectedSessions("demo"))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue