From 59e0e7ff92e7451e69c660eeba505938b1591705 Mon Sep 17 00:00:00 2001 From: Michael Russell Date: Fri, 8 Jun 2018 14:34:03 +0200 Subject: [PATCH] Add in error variables for the test failures message When tested with the -race flag in travis it was properly catching that these arguments to Errorf had not been set properly. ``` command/ssh_test.go:143: Errorf format %q reads arg #1, but call has only 0 args ``` --- command/ssh_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/ssh_test.go b/command/ssh_test.go index 312c39f38882e..3ed4a9ea93b10 100644 --- a/command/ssh_test.go +++ b/command/ssh_test.go @@ -140,7 +140,7 @@ func TestParseSSHCommand(t *testing.T) { hostname, username, port, err := cmd.parseSSHCommand(test.args) if err != test.err { - t.Errorf("got error: %q want %q") + t.Errorf("got error: %q want %q", err, test.err) } if hostname != test.hostname { t.Errorf("got hostname: %q want %q", hostname, test.hostname)