Skip to content

Commit ebe07eb

Browse files
committed
fix: install ginkgo v2 CLI and fix bare DeferCleanup in supply_test
- Update ginkgo install path to github.com/onsi/ginkgo/v2/ginkgo - Wrap bare DeferCleanup in BeforeEach in HandlePylibmc Describe block; DeferCleanup must be called inside a setup node, not a container node.
1 parent d2c174c commit ebe07eb

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

scripts/.util/tools.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function util::tools::ginkgo::install() {
4040
pushd /tmp > /dev/null || return
4141
GOBIN="${dir}" \
4242
go install \
43-
github.com/onsi/ginkgo/ginkgo@latest
43+
github.com/onsi/ginkgo/v2/ginkgo@latest
4444
popd > /dev/null || return
4545
fi
4646
}

src/python/supply/supply_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,9 @@ var _ = Describe("Supply", func() {
295295
})
296296

297297
Describe("HandlePylibmc", func() {
298-
DeferCleanup(os.Setenv, "LIBMEMCACHED", "")
298+
BeforeEach(func() {
299+
DeferCleanup(os.Setenv, "LIBMEMCACHED", "")
300+
})
299301

300302
Context("when the app uses pylibmc", func() {
301303
BeforeEach(func() {

0 commit comments

Comments
 (0)