diff --git a/cli/connhelper/connhelper_test.go b/cli/connhelper/connhelper_test.go index a5de3db5ac36..16aa78e2ebae 100644 --- a/cli/connhelper/connhelper_test.go +++ b/cli/connhelper/connhelper_test.go @@ -86,9 +86,7 @@ func TestDockerSSHBinaryOverride(t *testing.T) { t.Run(tc.name, func(t *testing.T) { t.Setenv(DockerSSHRemoteBinaryEnv, tc.env) result := dockerSSHRemoteBinary() - if result != tc.expected { - t.Errorf("expected %q, got %q", tc.expected, result) - } + assert.Check(t, is.Equal(result, tc.expected)) }) } }