From 353db5eda6051a37a40a3364c261fbb6d784e4b2 Mon Sep 17 00:00:00 2001 From: zhengxinwei Date: Sat, 18 Nov 2023 15:10:54 +0800 Subject: add go test for NegotiateTunnelPort function Signed-off-by: zhengxinwei --- hack/lib/golang.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hack') diff --git a/hack/lib/golang.sh b/hack/lib/golang.sh index 4dd19cbf9..7553eb474 100755 --- a/hack/lib/golang.sh +++ b/hack/lib/golang.sh @@ -459,8 +459,8 @@ kubeedge::golang::run_test() { local profile=${PROFILE:-""} if [[ $profile ]]; then - go test "-coverprofile=${profile}" ${testdirs[@]} + go test -gcflags "all=-N -l" "-coverprofile=${profile}" ${testdirs[@]} else - go test ${testdirs[@]} + go test -gcflags "all=-N -l" ${testdirs[@]} fi } -- cgit v1.2.3