Skip to content

Commit

Permalink
Use lates gotests infra image for test
Browse files Browse the repository at this point in the history
  • Loading branch information
efiacor committed Feb 5, 2025
1 parent caa97d0 commit da6e22b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .prow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ presubmits:
always_run: true
spec:
containers:
- image: nephio/gotests:1817817865340850176
- image: nephio/gotests:1885274380137664512
command:
- make
args:
Expand Down
4 changes: 1 addition & 3 deletions default-go-test.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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}"
Expand Down

0 comments on commit da6e22b

Please # to comment.