mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-06-08 03:12:08 +03:00
tests: Fix flakey collision test
This commit is contained in:
parent
39ac1f44ed
commit
48f65ed0e7
@ -106,9 +106,12 @@ func TestHostNameCollision(t *testing.T) {
|
|||||||
|
|
||||||
// Consume the initial buffer
|
// Consume the initial buffer
|
||||||
scanner.Scan()
|
scanner.Scan()
|
||||||
|
scanner.Scan()
|
||||||
|
scanner.Scan()
|
||||||
|
|
||||||
actual := scanner.Text()
|
actual := scanner.Text()
|
||||||
if !strings.HasPrefix(actual, "[Guest1] ") {
|
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 {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user