Skip to content

Commit

Permalink
msgpack/rpc: fix 'append with no values' vet error and for loop range
Browse files Browse the repository at this point in the history
Signed-off-by: Koichi Shiraishi <[email protected]>
  • Loading branch information
zchee committed May 8, 2024
1 parent 79aafc4 commit 27a03b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions msgpack/rpc/rpc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func TestEndpoint(t *testing.T) {
}

const n = 10
for i := 0; i < i; i++ {
for i := 0; i < n; i++ {
for j := 0; j < n; j++ {
if err := client.Notify("n1", fmt.Sprintf("notif %d,%d", i, j)); err != nil {
t.Fatal(err)
Expand All @@ -109,7 +109,7 @@ func TestArgs(t *testing.T) {
defer cleanup()

if err := server.Register("n", func(a, b string) ([]string, error) {
return append([]string{a, b}), nil
return []string{a, b}, nil
}); err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit 27a03b1

Please sign in to comment.