Skip to content

Commit 56e1c5d

Browse files
gururajshSamze
andauthored
Replace kill() with interrupt() (#3516)
Co-authored-by: Sam Gunaratne <[email protected]>
1 parent e6eba6a commit 56e1c5d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

integration/shared/plugin/logs_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ var _ = Describe("logs", func() {
6060
Eventually(restageSession).Should(Exit(0))
6161

6262
Eventually(logSession).Should(Say("Staticfile Buildpack version"))
63-
logSession.Kill()
63+
logSession.Interrupt()
6464

6565
Eventually(logSession).Should(Exit())
6666
})

integration/v7/isolated/ssh_command_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ var _ = Describe("ssh command", func() {
296296

297297
Eventually(BufferReader(response.Body)).Should(Say("WEBrick"))
298298

299-
session.Kill()
299+
session.Interrupt()
300300
Eventually(session).Should(Exit())
301301
})
302302
})

integration/v7/isolated/verbose_flag_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ var _ = Describe("Verbose", func() {
217217
Eventually(session).Should(Say(`GET /api/v1/read/.*\?\w+`))
218218
Eventually(session).Should(Say(`Host: log-cache\.`))
219219
Eventually(session).Should(Say(`Authorization: \[PRIVATE DATA HIDDEN\]`))
220-
Eventually(session.Kill()).Should(Exit())
220+
Eventually(session.Interrupt()).Should(Exit())
221221
},
222222

223223
Entry("CF_TRACE true: enables verbose", "true", "", false),
@@ -268,7 +268,7 @@ var _ = Describe("Verbose", func() {
268268
Eventually(session).Should(Say("RESPONSE:"))
269269
Eventually(session).Should(Say("GET /api/v1/info HTTP/1.1"))
270270
Eventually(session).Should(Say("GET /api/v1/read/"))
271-
session.Kill()
271+
session.Interrupt()
272272
Eventually(session).Should(Exit())
273273

274274
for _, filePath := range location {

0 commit comments

Comments
 (0)