Skip to content

Commit

Permalink
Add in error variables for the test failures message
Browse files Browse the repository at this point in the history
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 hashicorp#1, but call has
only 0 args
```
  • Loading branch information
Crazybus committed Jun 9, 2018
1 parent 702aa8a commit 59e0e7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command/ssh_test.go
Expand Up @@ -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)
Expand Down

0 comments on commit 59e0e7f

Please sign in to comment.