Skip to content

Commit 6d7f07c

Browse files
authored
test/tools: update staticcheck version to latest (#7509)
1 parent 9706bf8 commit 6d7f07c

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

examples/features/customloadbalancer/client/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func main() {
6767
defer cancel()
6868
ec := pb.NewEchoClient(cc)
6969
if err := waitForDistribution(ctx, ec); err != nil {
70-
log.Fatalf(err.Error())
70+
log.Fatal(err)
7171
}
7272
fmt.Println("Successful multiple iterations of 1:2 ratio")
7373
}

internal/transport/transport_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1727,7 +1727,7 @@ func waitWhileTrue(t *testing.T, condition func() (bool, error)) {
17271727
if wait {
17281728
select {
17291729
case <-timer.C:
1730-
t.Fatalf(err.Error())
1730+
t.Fatal(err)
17311731
default:
17321732
time.Sleep(50 * time.Millisecond)
17331733
continue

test/bufconn/bufconn_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func testRW(r io.Reader, w io.Writer) error {
7777
func (s) TestPipe(t *testing.T) {
7878
p := newPipe(10)
7979
if err := testRW(p, p); err != nil {
80-
t.Fatalf(err.Error())
80+
t.Fatal(err)
8181
}
8282
}
8383

@@ -97,10 +97,10 @@ func (s) TestConn(t *testing.T) {
9797
c1, c2 := &conn{p1, p2}, &conn{p2, p1}
9898

9999
if err := testRW(c1, c2); err != nil {
100-
t.Fatalf(err.Error())
100+
t.Fatal(err)
101101
}
102102
if err := testRW(c2, c1); err != nil {
103-
t.Fatalf(err.Error())
103+
t.Fatal(err)
104104
}
105105
}
106106

@@ -169,10 +169,10 @@ func (s) TestListener(t *testing.T) {
169169
t.Fatalf("cerr = %v, serr = %v; want nil, nil", cerr, serr)
170170
}
171171
if err := testRW(c, s); err != nil {
172-
t.Fatalf(err.Error())
172+
t.Fatal(err)
173173
}
174174
if err := testRW(s, c); err != nil {
175-
t.Fatalf(err.Error())
175+
t.Fatal(err)
176176
}
177177
}
178178

test/tools/go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
module google.golang.org/grpc/test/tools
22

3-
go 1.21
3+
go 1.22.1
44

55
require (
66
github.com/client9/misspell v0.3.4
77
github.com/mgechev/revive v1.3.9
88
golang.org/x/tools v0.23.0
99
google.golang.org/protobuf v1.34.1
10-
honnef.co/go/tools v0.4.7
10+
honnef.co/go/tools v0.5.0
1111
)
1212

1313
require (
14-
github.com/BurntSushi/toml v1.4.0 // indirect
14+
github.com/BurntSushi/toml v1.4.1-0.20240526193622-a339e1f7089c // indirect
1515
github.com/chavacava/garif v0.1.0 // indirect
1616
github.com/fatih/color v1.17.0 // indirect
1717
github.com/fatih/structtag v1.2.0 // indirect

test/tools/go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
github.com/BurntSushi/toml v1.4.0 h1:kuoIxZQy2WRRk1pttg9asf+WVv6tWQuBNVmK8+nqPr0=
2-
github.com/BurntSushi/toml v1.4.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho=
1+
github.com/BurntSushi/toml v1.4.1-0.20240526193622-a339e1f7089c h1:pxW6RcqyfI9/kWtOwnv/G+AzdKuy2ZrqINhenH4HyNs=
2+
github.com/BurntSushi/toml v1.4.1-0.20240526193622-a339e1f7089c/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho=
33
github.com/chavacava/garif v0.1.0 h1:2JHa3hbYf5D9dsgseMKAmc/MZ109otzgNFk5s87H9Pc=
44
github.com/chavacava/garif v0.1.0/go.mod h1:XMyYCkEL58DF0oyW4qDjjnPWONs2HBqYKI+UIPD+Gww=
55
github.com/client9/misspell v0.3.4 h1:ta993UF76GwbvJcIo3Y68y/M3WxlpEHPWIGDkJYwzJI=
@@ -64,5 +64,5 @@ gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8
6464
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
6565
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
6666
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
67-
honnef.co/go/tools v0.4.7 h1:9MDAWxMoSnB6QoSqiVr7P5mtkT9pOc1kSxchzPCnqJs=
68-
honnef.co/go/tools v0.4.7/go.mod h1:+rnGS1THNh8zMwnd2oVOTL9QF6vmfyG6ZXBULae2uc0=
67+
honnef.co/go/tools v0.5.0 h1:29uoiIormS3Z6R+t56STz/oI4v+mB51TSmEOdJPgRnE=
68+
honnef.co/go/tools v0.5.0/go.mod h1:e9irvo83WDG9/irijV44wr3tbhcFeRnfpVlRqVwpzMs=

0 commit comments

Comments
 (0)