Skip to content

Commit e8d5753

Browse files
Bump honnef.co/go/tools Co-authored-by: Prajyot-Parab <[email protected]> (#2235)
Co-authored-by: Karthik Bhat <[email protected]>
1 parent be09b1e commit e8d5753

File tree

5 files changed

+18
-12
lines changed

5 files changed

+18
-12
lines changed

api/v1beta2/suite_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ package v1beta2
1818

1919
import (
2020
"fmt"
21+
"os"
2122
"path"
2223
"testing"
2324

@@ -35,8 +36,9 @@ var (
3536

3637
func TestMain(m *testing.M) {
3738
setup()
38-
defer teardown()
39-
m.Run()
39+
result := m.Run()
40+
teardown()
41+
os.Exit(result)
4042
}
4143

4244
// Setting up the test environment.

cloud/scope/suite_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ package scope
1818

1919
import (
2020
"fmt"
21+
"os"
2122
"path"
2223
"testing"
2324

@@ -37,8 +38,9 @@ var (
3738

3839
func TestMain(m *testing.M) {
3940
setup()
40-
defer teardown()
41-
m.Run()
41+
result := m.Run()
42+
teardown()
43+
os.Exit(result)
4244
}
4345

4446
// Setting up the test environment.

controllers/suite_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ package controllers
1818

1919
import (
2020
"fmt"
21+
"os"
2122
"path"
2223
"testing"
2324

@@ -38,8 +39,9 @@ var (
3839

3940
func TestMain(m *testing.M) {
4041
setup()
41-
defer teardown()
42-
m.Run()
42+
result := m.Run()
43+
teardown()
44+
os.Exit(result)
4345
}
4446

4547
// Setting up the test environment.

hack/tools/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ require (
5252
github.com/Azure/go-autorest/logger v0.2.1 // indirect
5353
github.com/Azure/go-autorest/tracing v0.6.0 // indirect
5454
github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 // indirect
55-
github.com/BurntSushi/toml v1.4.0 // indirect
55+
github.com/BurntSushi/toml v1.4.1-0.20240526193622-a339e1f7089c // indirect
5656
github.com/Crocmagnon/fatcontext v0.2.2 // indirect
5757
github.com/CycloneDX/cyclonedx-go v0.9.2 // indirect
5858
github.com/DataDog/zstd v1.5.5 // indirect
@@ -531,7 +531,7 @@ require (
531531
gopkg.in/yaml.v2 v2.4.0 // indirect
532532
gopkg.in/yaml.v3 v3.0.1 // indirect
533533
helm.sh/helm/v3 v3.16.3 // indirect
534-
honnef.co/go/tools v0.4.7 // indirect
534+
honnef.co/go/tools v0.5.1 // indirect
535535
k8s.io/api v0.31.3 // indirect
536536
k8s.io/apiextensions-apiserver v0.31.3 // indirect
537537
k8s.io/apimachinery v0.31.3 // indirect

hack/tools/go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,8 @@ github.com/AzureAD/microsoft-authentication-extensions-for-go/cache v0.1.1/go.mo
270270
github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU=
271271
github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI=
272272
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
273-
github.com/BurntSushi/toml v1.4.0 h1:kuoIxZQy2WRRk1pttg9asf+WVv6tWQuBNVmK8+nqPr0=
274-
github.com/BurntSushi/toml v1.4.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho=
273+
github.com/BurntSushi/toml v1.4.1-0.20240526193622-a339e1f7089c h1:pxW6RcqyfI9/kWtOwnv/G+AzdKuy2ZrqINhenH4HyNs=
274+
github.com/BurntSushi/toml v1.4.1-0.20240526193622-a339e1f7089c/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho=
275275
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
276276
github.com/Crocmagnon/fatcontext v0.2.2 h1:OrFlsDdOj9hW/oBEJBNSuH7QWf+E9WPVHw+x52bXVbk=
277277
github.com/Crocmagnon/fatcontext v0.2.2/go.mod h1:WSn/c/+MMNiD8Pri0ahRj0o9jVpeowzavOQplBJw6u0=
@@ -2456,8 +2456,8 @@ honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWh
24562456
honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
24572457
honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
24582458
honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
2459-
honnef.co/go/tools v0.4.7 h1:9MDAWxMoSnB6QoSqiVr7P5mtkT9pOc1kSxchzPCnqJs=
2460-
honnef.co/go/tools v0.4.7/go.mod h1:+rnGS1THNh8zMwnd2oVOTL9QF6vmfyG6ZXBULae2uc0=
2459+
honnef.co/go/tools v0.5.1 h1:4bH5o3b5ZULQ4UrBmP+63W9r7qIkqJClEA9ko5YKx+I=
2460+
honnef.co/go/tools v0.5.1/go.mod h1:e9irvo83WDG9/irijV44wr3tbhcFeRnfpVlRqVwpzMs=
24612461
k8s.io/api v0.31.3 h1:umzm5o8lFbdN/hIXbrK9oRpOproJO62CV1zqxXrLgk8=
24622462
k8s.io/api v0.31.3/go.mod h1:UJrkIp9pnMOI9K2nlL6vwpxRzzEX5sWgn8kGQe92kCE=
24632463
k8s.io/apiextensions-apiserver v0.31.3 h1:+GFGj2qFiU7rGCsA5o+p/rul1OQIq6oYpQw4+u+nciE=

0 commit comments

Comments
 (0)