Skip to content

Commit 2b2b09f

Browse files
mattmacleodvvoland
andauthored
Apply suggestions from code review
Simplify test assertion Co-authored-by: Paweł Gronowski <[email protected]>
1 parent 43dd6ea commit 2b2b09f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cli/connhelper/connhelper_test.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,7 @@ func TestDockerSSHBinaryOverride(t *testing.T) {
8686
t.Run(tc.name, func(t *testing.T) {
8787
t.Setenv(DockerSSHRemoteBinaryEnv, tc.env)
8888
result := dockerSSHRemoteBinary()
89-
if result != tc.expected {
90-
t.Errorf("expected %q, got %q", tc.expected, result)
91-
}
89+
assert.Check(t, is.Equal(result, tc.expected))
9290
})
9391
}
9492
}

0 commit comments

Comments
 (0)