From b58ffb94257209ec7ba458e2e398c595eed65973 Mon Sep 17 00:00:00 2001 From: Anthony Dahanne Date: Sun, 24 Sep 2023 21:14:30 -0400 Subject: [PATCH] debug --- java/akka/smoke_test/akka_test.go | 9 ++++++++- .../smoke_test/application_insights_test.go | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/java/akka/smoke_test/akka_test.go b/java/akka/smoke_test/akka_test.go index ab3c167a..0788a673 100644 --- a/java/akka/smoke_test/akka_test.go +++ b/java/akka/smoke_test/akka_test.go @@ -4,6 +4,7 @@ import ( "flag" "fmt" "github.com/paketo-buildpacks/samples/tests" + "log" "os" "path/filepath" "strings" @@ -96,7 +97,13 @@ func testAkkaWithBuilder(builder string) func(*testing.T, spec.G, spec.S) { } var err error - source, err = occam.Source(filepath.Join("../../", "akka")) + log.Println("YO!!!") + path, err := os.Getwd() + if err != nil { + log.Println(err) + } + fmt.Println(path) + source, err = occam.Source(filepath.Join("../")) Expect(err).NotTo(HaveOccurred()) var logs fmt.Stringer diff --git a/java/application-insights/smoke_test/application_insights_test.go b/java/application-insights/smoke_test/application_insights_test.go index 59a1fbcc..f800dc96 100644 --- a/java/application-insights/smoke_test/application_insights_test.go +++ b/java/application-insights/smoke_test/application_insights_test.go @@ -4,6 +4,7 @@ import ( "flag" "fmt" "github.com/paketo-buildpacks/samples/tests" + "log" "os" "path/filepath" "testing" @@ -91,7 +92,13 @@ func testApplicationInsightsWithBuilders(builder string) func(*testing.T, spec.G context("app uses application insights", func() { it("builds successfully", func() { var err error - source, err = occam.Source(filepath.Join("../../java", "application-insights")) + log.Println("YO!!!") + path, err := os.Getwd() + if err != nil { + log.Println(err) + } + fmt.Println(path) + source, err = occam.Source(filepath.Join("../")) Expect(err).NotTo(HaveOccurred()) var logs fmt.Stringer