From da6e22bf1ac8e002db184fbc981ab9aa69f0ed06 Mon Sep 17 00:00:00 2001 From: Fiachra Corcoran Date: Wed, 5 Feb 2025 19:48:29 +0000 Subject: [PATCH] Use lates gotests infra image for test --- .prow.yaml | 2 +- default-go-test.mk | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.prow.yaml b/.prow.yaml index c4342944..41cca371 100644 --- a/.prow.yaml +++ b/.prow.yaml @@ -4,7 +4,7 @@ presubmits: always_run: true spec: containers: - - image: nephio/gotests:1817817865340850176 + - image: nephio/gotests:1885274380137664512 command: - make args: diff --git a/default-go-test.mk b/default-go-test.mk index 832dfc84..85d1f896 100644 --- a/default-go-test.mk +++ b/default-go-test.mk @@ -12,8 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. - -GO_VERSION ?= 1.22.2 TEST_COVERAGE_FILE=lcov.info TEST_COVERAGE_HTML_FILE=coverage_unit.html TEST_COVERAGE_FUNC_FILE=func_coverage.out @@ -28,7 +26,7 @@ unit: test .PHONY: test test: ## Run unit tests (go test) ifeq ($(CONTAINER_RUNNABLE), 0) - $(RUN_CONTAINER_COMMAND) docker.io/library/golang:${GO_VERSION}-alpine3.19 \ + $(RUN_CONTAINER_COMMAND) docker.io/nephio/gotests:1885274380137664512 \ sh -e -c "go test ./... -v -coverprofile ${TEST_COVERAGE_FILE}; \ go tool cover -html=${TEST_COVERAGE_FILE} -o ${TEST_COVERAGE_HTML_FILE}; \ go tool cover -func=${TEST_COVERAGE_FILE} -o ${TEST_COVERAGE_FUNC_FILE}"