Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Naveen-is-here committed Dec 5, 2024
1 parent 6a7eec2 commit c037c82
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions integration/build_failure_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func testBuildFailure(t *testing.T, context spec.G, it spec.S) {
Expect(file.Close()).To(Succeed())

_, logs, err := pack.Build.
WithPullPolicy("if-not-present").
WithPullPolicy("never").
WithBuildpacks(
settings.Buildpacks.GoDist.Online,
settings.Buildpacks.GoBuild.Online,
Expand Down Expand Up @@ -105,7 +105,7 @@ func testBuildFailure(t *testing.T, context spec.G, it spec.S) {
Expect(os.WriteFile(filepath.Join(source, "buildpack.yml"), nil, os.ModePerm)).To(Succeed())

_, logs, err := pack.Build.
WithPullPolicy("if-not-present").
WithPullPolicy("never").
WithBuildpacks(
settings.Buildpacks.GoDist.Online,
settings.Buildpacks.GoBuild.Online,
Expand All @@ -120,4 +120,4 @@ func testBuildFailure(t *testing.T, context spec.G, it spec.S) {
))
})
})
}
}
6 changes: 3 additions & 3 deletions integration/rebuild_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func testRebuild(t *testing.T, context spec.G, it spec.S) {
Expect(err).NotTo(HaveOccurred())

build := pack.Build.
WithPullPolicy("if-not-present").
WithPullPolicy("never").
WithBuildpacks(
settings.Buildpacks.GoDist.Online,
settings.Buildpacks.GoBuild.Online,
Expand Down Expand Up @@ -100,7 +100,7 @@ func testRebuild(t *testing.T, context spec.G, it spec.S) {

Eventually(container).Should(BeAvailable())

//Expect(secondImage.Buildpacks[1].Layers["targets"].SHA).To(Equal(firstImage.Buildpacks[1].Layers["targets"].SHA))
Expect(secondImage.Buildpacks[1].Layers["targets"].SHA).To(Equal(firstImage.Buildpacks[1].Layers["targets"].SHA))
})
})
}
}
4 changes: 2 additions & 2 deletions integration/targets_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func testTargets(t *testing.T, context spec.G, it spec.S) {
var err error
var logs fmt.Stringer
image, logs, err = pack.Build.
WithPullPolicy("if-not-present").
WithPullPolicy("never").
WithEnv(map[string]string{"BP_GO_TARGETS": "first:./second"}).
WithBuildpacks(
settings.Buildpacks.GoDist.Online,
Expand Down Expand Up @@ -120,4 +120,4 @@ func testTargets(t *testing.T, context spec.G, it spec.S) {
Expect(string(contents)).NotTo(ContainSubstring(`"name": "github.com/Masterminds/semver"`))
})
})
}
}
4 changes: 2 additions & 2 deletions integration/work_use_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func testWorkUse(t *testing.T, context spec.G, it spec.S) {

var logs fmt.Stringer
image, logs, err = pack.Build.
WithPullPolicy("if-not-present").
WithPullPolicy("never").
WithBuildpacks(
settings.Buildpacks.GoDist.Online,
settings.Buildpacks.GoBuild.Online,
Expand Down Expand Up @@ -106,4 +106,4 @@ func testWorkUse(t *testing.T, context spec.G, it spec.S) {
Expect(string(contents)).To(ContainSubstring(`"name": "github.com/sahilm/fuzzy"`))
})
})
}
}

0 comments on commit c037c82

Please sign in to comment.