Skip to content

Commit f6a2c9b

Browse files
committed
Fix tests
1 parent 61f5410 commit f6a2c9b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cf_cli_java_plugin_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ var _ = Describe("CfJavaPlugin", func() {
176176
})
177177
Expect(output).To(BeEmpty())
178178
Expect(err).To(BeNil())
179-
Expect(cliOutput).To(Equal("Successfully created heap dump in application container at: " + pluginUtil.Fspath + "/" + pluginUtil.OutputFileName + "|Heap dump will not be copied as parameter `local-dir` was not set|Heap dump file deleted in app container|"))
179+
Expect(cliOutput).To(Equal("Successfully created heap dump in application container at: " + pluginUtil.Fspath + "/" + pluginUtil.OutputFileName + "|Heap dump file saved to: ./my_app-heapdump-" + pluginUtil.UUID + ".hprof|Heap dump file deleted in application container|"))
180180

181181
Expect(commandExecutor.ExecuteCallCount()).To(Equal(1))
182182
Expect(commandExecutor.ExecuteArgsForCall(0)).To(Equal([]string{"ssh",
@@ -200,7 +200,7 @@ var _ = Describe("CfJavaPlugin", func() {
200200

201201
Expect(output).To(BeEmpty())
202202
Expect(err).To(BeNil())
203-
Expect(cliOutput).To(Equal("Successfully created heap dump in application container at: " + pluginUtil.Fspath + "/" + pluginUtil.OutputFileName + "|Heap dump will not be copied as parameter `local-dir` was not set|Heap dump file deleted in app container|"))
203+
Expect(cliOutput).To(Equal("Successfully created heap dump in application container at: " + pluginUtil.Fspath + "/" + pluginUtil.OutputFileName + "|Heap dump file saved to: ./my_app-heapdump-" + pluginUtil.UUID + ".hprof|Heap dump file deleted in application container|"))
204204

205205
Expect(commandExecutor.ExecuteCallCount()).To(Equal(1))
206206
Expect(commandExecutor.ExecuteArgsForCall(0)).To(Equal([]string{
@@ -283,7 +283,7 @@ var _ = Describe("CfJavaPlugin", func() {
283283

284284
Expect(output).To(BeEmpty())
285285
Expect(err).To(BeNil())
286-
Expect(cliOutput).To(Equal("Successfully created heap dump in application container at: " + pluginUtil.Fspath + "/" + pluginUtil.OutputFileName + "|Heap dump will not be copied as parameter `local-dir` was not set|"))
286+
Expect(cliOutput).To(Equal("Successfully created heap dump in application container at: " + pluginUtil.Fspath + "/" + pluginUtil.OutputFileName + "|Heap dump file saved to: ./my_app-heapdump-" + pluginUtil.UUID + ".hprof|"))
287287
Expect(commandExecutor.ExecuteCallCount()).To(Equal(1))
288288
Expect(commandExecutor.ExecuteArgsForCall(0)).To(Equal([]string{"ssh",
289289
"my_app",

0 commit comments

Comments
 (0)