diff --git a/cmd/serve/proxy/proxy_test.go b/cmd/serve/proxy/proxy_test.go index 574a7aa15..8f802ab12 100644 --- a/cmd/serve/proxy/proxy_test.go +++ b/cmd/serve/proxy/proxy_test.go @@ -153,7 +153,7 @@ func TestRun(t *testing.T) { fs.Fatal(nil, "error generating test private key "+privateKeyErr.Error()) } publicKey, publicKeyError := ssh.NewPublicKey(&privateKey.PublicKey) - if privateKeyErr != nil { + if publicKeyError != nil { fs.Fatal(nil, "error generating test public key "+publicKeyError.Error()) }