From 48f65ed0e767db1e6cfa3bd45c4986bf10acaaab Mon Sep 17 00:00:00 2001 From: Andrey Petrov Date: Mon, 11 Jul 2016 12:12:23 -0400 Subject: [PATCH] tests: Fix flakey collision test --- host_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/host_test.go b/host_test.go index f804f28..c7527ab 100644 --- a/host_test.go +++ b/host_test.go @@ -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 {