1
0
mirror of https://github.com/shazow/ssh-chat.git synced 2025-04-22 19:50:33 +03:00

tests: Fix flakey collision test

This commit is contained in:
Andrey Petrov 2016-07-11 12:12:23 -04:00
parent 39ac1f44ed
commit 48f65ed0e7

@ -106,9 +106,12 @@ func TestHostNameCollision(t *testing.T) {
// Consume the initial buffer
scanner.Scan()
scanner.Scan()
scanner.Scan()
actual := scanner.Text()
if !strings.HasPrefix(actual, "[Guest1] ") {
t.Errorf("Second client did not get Guest1 name.")
t.Errorf("Second client did not get Guest1 name: %q", actual)
}
})
if err != nil {