Skip to content

Commit

Permalink
print after debug command returns
Browse files Browse the repository at this point in the history
  • Loading branch information
arianaw66 committed Dec 16, 2024
1 parent 5904523 commit d5e99d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions projects/gloo/cli/pkg/cmd/debug/root_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ var _ = Describe("Debug", func() {
}, func() {
fmt.Println("ARIANA", time.Now().Format("15:04:05.999999999"), "debug TEST: running debug")
err := testutils.Glooctl("debug")
fmt.Println("ARIANA", time.Now().Format("15:04:05.999999999"), "debug TEST: AFTER debug")
Expect(err).NotTo(HaveOccurred())
}, &timeout)

Expand All @@ -68,6 +69,7 @@ var _ = Describe("Debug", func() {
}, func() {
fmt.Println("ARIANA", time.Now().Format("15:04:05.999999999"), "custom-dir TEST: running debug")
err := testutils.Glooctl("debug --directory " + customDir)
fmt.Println("ARIANA", time.Now().Format("15:04:05.999999999"), "custom-dir TEST: AFTER debug")
Expect(err).NotTo(HaveOccurred())
}, &timeout)

Expand All @@ -91,6 +93,7 @@ var _ = Describe("Debug", func() {
}, func() {
fmt.Println("ARIANA", time.Now().Format("15:04:05.999999999"), "N-debug TEST: running debug")
err := testutils.Glooctl("debug")
fmt.Println("ARIANA", time.Now().Format("15:04:05.999999999"), "N-debug TEST: AFTER debug")
Expect(err).To(HaveOccurred())
Expect(err.Error()).To(ContainSubstring("Aborting: cannot proceed without overwriting \"" + defaultOutDir + "\" directory"))
}, nil)
Expand Down

0 comments on commit d5e99d0

Please sign in to comment.