1
0
mirror of https://gitlab.crans.org/nounous/ghostream.git synced 2024-12-22 19:42:20 +00:00

Fix telnet test

This commit is contained in:
Alexandre Iooss 2020-10-16 20:53:38 +02:00
parent b5907fee1a
commit fcfe69143f
No known key found for this signature in database
GPG Key ID: 6C79278F3FCDCC02

View File

@ -93,8 +93,8 @@ func TestTelnetOutput(t *testing.T) {
t.Fatalf("Error while reading the image from TCP: %s", err) t.Fatalf("Error while reading the image from TCP: %s", err)
} }
// Ensure that the size of the image is correct // Ensure that the size of the image is correct
if n != 42+(2*Cfg.Width+1)*Cfg.Height { if n < 10800 {
t.Fatalf("Read %d from TCP, expected %d", n, 42+(2*Cfg.Width+1)*Cfg.Height) t.Fatalf("Read %d from TCP, expected more than 10800", n)
} }
if GetNumberConnectedSessions("demo") != 1 { if GetNumberConnectedSessions("demo") != 1 {