Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
wpjunior committed Dec 11, 2020
1 parent 23297c6 commit 2ada41a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,9 @@ endif

build/plugin/rpaasv2:
@mkdir -p build/_output/bin/
go build -o build/_output/bin/rpaasv2 ./cmd/plugin/rpaasv2
go build -o build/_output/bin/rpaasv2 ./cmd/plugin/rpaasv2

lint:
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $$(go env GOPATH)/bin $(GOLANGCI_LINT_VERSION)
go install ./...
golangci-lint run --config ./.golangci.yml ./...
4 changes: 2 additions & 2 deletions test/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,8 @@ func Test_RpaasApi(t *testing.T) {
for _, podLabel := range podLabels {
_, err = kubectlWithRetry("wait", "--for=condition=Ready", "-l", podLabel, "pod", "--timeout", "5m", "-n", namespaceName)
if !assert.NoError(t, err) {
troubleshoot, err := kubectl("get", "pods", "-l", podLabel, "-n", namespaceName)
assert.NoError(t, err)
troubleshoot, troubleshootErr := kubectl("get", "pods", "-l", podLabel, "-n", namespaceName)
assert.NoError(t, troubleshootErr)
t.Errorf("Current pods: %s", string(troubleshoot))
}
}
Expand Down

0 comments on commit 2ada41a

Please sign in to comment.