Skip to content

Commit dda4de8

Browse files
authored
[nit]: update ginkgo version in CI process keep same with go mod (#1855)
* [fix]: update ginkgo version in CI process keep same with go mod Signed-off-by: Sam Yuan <[email protected]> * [fix]: Test Panicked with nil pointer Signed-off-by: Sam Yuan <[email protected]> --------- Signed-off-by: Sam Yuan <[email protected]>
1 parent c599cb3 commit dda4de8

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ ginkgo-set:
247247
mkdir -p $(GOBIN)
248248
mkdir -p $(ENVTEST_ASSETS_DIR)
249249
@test -f $(ENVTEST_ASSETS_DIR)/ginkgo || \
250-
(go install -mod=mod github.com/onsi/ginkgo/v2/ginkgo@v2.19.0 && \
250+
(go install -mod=mod github.com/onsi/ginkgo/v2/ginkgo@v2.20.1 && \
251251
cp $(GOBIN)/ginkgo $(ENVTEST_ASSETS_DIR)/ginkgo)
252252

253253
.PHONY: container_test

pkg/collector/stats/vm_stats_test.go

+5
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ import (
88

99
var _ = Describe("VMMetric", func() {
1010

11+
BeforeEach(func() {
12+
_, err := config.Initialize(".")
13+
Expect(err).NotTo(HaveOccurred())
14+
})
15+
1116
It("Test ResetDeltaValues", func() {
1217
SetMockedCollectorMetrics()
1318
vm := NewVMStats(0, "name")

0 commit comments

Comments
 (0)