Skip to content

Commit 11b6edb

Browse files
committed
PR suggestions
1 parent 4b13ce1 commit 11b6edb

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

command/v7/login_command_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,13 +325,10 @@ var _ = Describe("login Command", func() {
325325
When("targeting the API with --skip-ssl-validation flag", func() {
326326
BeforeEach(func() {
327327
cmd.APIEndpoint = "api.example.com"
328-
// fakeActor.SetTargetReturns(nil, ccerror.UnverifiedServerError{URL: "https://api.example.com"})
329328
})
330329

331330
It("login succeeds", func() {
332331
Expect(executeErr).NotTo(HaveOccurred())
333-
// Expect(executeErr).To(MatchError(
334-
// translatableerror.InvalidSSLCertError{URL: "https://api.example.com", SuggestedCommand: "login"}))
335332
})
336333
})
337334
})

integration/v7/isolated/api_command_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ var _ = Describe("api command", func() {
140140
Eventually(session.Err).Should(Say("TIP: Use 'cf api --skip-ssl-validation' to continue with an insecure API endpoint"))
141141
Eventually(session).Should(Say("FAILED"))
142142
Eventually(session).Should(Exit(1))
143-
server.Close()
143+
defer server.Close()
144144
})
145145

146146
It("sets the API endpoint", func() {

0 commit comments

Comments
 (0)