| Index: common/tsmon/field/field_test.go
|
| diff --git a/common/tsmon/field/field_test.go b/common/tsmon/field/field_test.go
|
| index 88a925245603fbf0b65ca6ceeadcf6f5b7ac5734..53b7f384fb028dc570b1273a089109fb76f98f2e 100644
|
| --- a/common/tsmon/field/field_test.go
|
| +++ b/common/tsmon/field/field_test.go
|
| @@ -7,8 +7,6 @@ import (
|
| "fmt"
|
| "testing"
|
|
|
| - "github.com/golang/protobuf/proto"
|
| -
|
| pb "github.com/luci/luci-go/common/tsmon/ts_mon_proto"
|
|
|
| . "github.com/smartystreets/goconvey/convey"
|
| @@ -25,9 +23,9 @@ func TestSerialize(t *testing.T) {
|
| values: makeInterfaceSlice("v"),
|
| want: []*pb.MetricsField{
|
| {
|
| - Name: proto.String("foo"),
|
| - Type: pb.MetricsField_STRING.Enum(),
|
| - StringValue: proto.String("v"),
|
| + Name: "foo",
|
| + Type: pb.MetricsField_STRING,
|
| + StringValue: "v",
|
| },
|
| },
|
| },
|
| @@ -36,9 +34,9 @@ func TestSerialize(t *testing.T) {
|
| values: makeInterfaceSlice(int64(123)),
|
| want: []*pb.MetricsField{
|
| {
|
| - Name: proto.String("foo"),
|
| - Type: pb.MetricsField_INT.Enum(),
|
| - IntValue: proto.Int64(123),
|
| + Name: "foo",
|
| + Type: pb.MetricsField_INT,
|
| + IntValue: 123,
|
| },
|
| },
|
| },
|
| @@ -47,9 +45,9 @@ func TestSerialize(t *testing.T) {
|
| values: makeInterfaceSlice(true),
|
| want: []*pb.MetricsField{
|
| {
|
| - Name: proto.String("foo"),
|
| - Type: pb.MetricsField_BOOL.Enum(),
|
| - BoolValue: proto.Bool(true),
|
| + Name: "foo",
|
| + Type: pb.MetricsField_BOOL,
|
| + BoolValue: true,
|
| },
|
| },
|
| },
|
|
|