Skip to content

Commit

Permalink
tests/watchexec: direct image instead of occam packager
Browse files Browse the repository at this point in the history
See paketo-buildpacks/libpak#321, create-package is not able to support
multiarch buildpacks and watchexec was just released multiarch
  • Loading branch information
arjun024 committed Apr 25, 2024
1 parent 4ca8bf2 commit 70eda1e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion integration.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"index.docker.io/paketobuildpacks/builder-jammy-buildpackless-base:latest"
],
"build-plan": "github.com/paketo-community/build-plan",
"watchexec": "github.com/paketo-buildpacks/watchexec"
"watchexec": "index.docker.io/paketobuildpacks/watchexec"
}
4 changes: 1 addition & 3 deletions integration/init_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,7 @@ func TestIntegration(t *testing.T) {
Execute(root)
Expect(err).NotTo(HaveOccurred())

settings.Buildpacks.Watchexec.Online, err = libpakBuildpackStore.Get.
Execute(settings.Config.Watchexec)
Expect(err).ToNot(HaveOccurred())
settings.Buildpacks.Watchexec.Online = settings.Config.Watchexec

settings.Buildpacks.BuildPlan.Online, err = libpakBuildpackStore.Get.
Execute(settings.Config.BuildPlan)
Expand Down
4 changes: 2 additions & 2 deletions integration/simple_app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func testSimpleApp(t *testing.T, context spec.G, it spec.S) {
settings.Buildpacks.Watchexec.Online,
settings.Buildpacks.NGINX.Online,
).
WithPullPolicy("never").
WithPullPolicy("if-not-present").
WithEnv(map[string]string{
"BP_LIVE_RELOAD_ENABLED": "true",
}).
Expand Down Expand Up @@ -242,7 +242,7 @@ func testSimpleApp(t *testing.T, context spec.G, it spec.S) {
Execute(name, source)
Expect(err).To(HaveOccurred())

Expect(logs).To(ContainSubstring("invalid syntax"))
Expect(logs.String()).To(ContainSubstring("invalid syntax"))
})
})
}

0 comments on commit 70eda1e

Please sign in to comment.