From 4fb6d3f6f15faf8cfaf99a11fb65e577669251a4 Mon Sep 17 00:00:00 2001 From: guoxudong Date: Tue, 8 Dec 2020 12:49:16 +0800 Subject: [PATCH] fix --- .github/workflows/go.yaml | 2 +- cmd/utils_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index 5f11e922..51c0b8f6 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -3,7 +3,7 @@ name: Go on: push: branches: - - "*" + - "master" pull_request: branches: - master diff --git a/cmd/utils_test.go b/cmd/utils_test.go index 0829933f..bc5cd825 100644 --- a/cmd/utils_test.go +++ b/cmd/utils_test.go @@ -5,8 +5,8 @@ import ( "reflect" "testing" - clientcmdapi "k8s.io/client-go/tools/clientcmd/api" "k8s.io/apimachinery/pkg/util/diff" + clientcmdapi "k8s.io/client-go/tools/clientcmd/api" ) var ( @@ -58,7 +58,7 @@ func Test_appendConfig(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { got := appendConfig(tt.args.c1, tt.args.c2) - checkResult(tt.want, got,"", t) + checkResult(tt.want, got, "", t) }) } }