Skip to content

Commit

Permalink
fix gofumpt
Browse files Browse the repository at this point in the history
Signed-off-by: kevindiu <kevindiujp@gmail.com>
  • Loading branch information
kevindiu committed Jun 20, 2022
1 parent 920e05d commit 1ab93c5
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions pkg/agent/core/ngt/handler/grpc/insert_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,14 @@ import (
grpcStatus "google.golang.org/genproto/googleapis/rpc/status"
)

var (
objectStreamLocationComparators = []comparator.Option{
comparator.IgnoreUnexported(payload.Object_StreamLocation{}),
comparator.IgnoreUnexported(payload.Object_Location{}),
comparator.Comparer(func(x, y grpcStatus.Status) bool {
// ignore checking the detail of status
return x.Code == y.Code
}),
}
)
var objectStreamLocationComparators = []comparator.Option{
comparator.IgnoreUnexported(payload.Object_StreamLocation{}),
comparator.IgnoreUnexported(payload.Object_Location{}),
comparator.Comparer(func(x, y grpcStatus.Status) bool {
// ignore checking the detail of status
return x.Code == y.Code
}),
}

func Test_server_Insert(t *testing.T) {
t.Parallel()
Expand Down Expand Up @@ -2109,7 +2107,8 @@ func Test_server_StreamInsert(t *testing.T) {
l := request.GenObjectStreamLocation(insertCnt, name, ip)
l[0] = genObjectStreamLoc(codes.InvalidArgument)
return l
}()},
}(),
},
}
}(),
func() test {
Expand Down

0 comments on commit 1ab93c5

Please sign in to comment.