vendor: update all dependencies
This commit is contained in:
+19
-11
@@ -32,7 +32,7 @@ var (
|
||||
Path: []*pb.Key_PathElement{
|
||||
{
|
||||
Kind: "Gopher",
|
||||
IdType: &pb.Key_PathElement_Id{6},
|
||||
IdType: &pb.Key_PathElement_Id{Id: 6},
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -40,11 +40,11 @@ var (
|
||||
Path: []*pb.Key_PathElement{
|
||||
{
|
||||
Kind: "Gopher",
|
||||
IdType: &pb.Key_PathElement_Id{6},
|
||||
IdType: &pb.Key_PathElement_Id{Id: 6},
|
||||
},
|
||||
{
|
||||
Kind: "Gopher",
|
||||
IdType: &pb.Key_PathElement_Id{8},
|
||||
IdType: &pb.Key_PathElement_Id{Id: 8},
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -66,7 +66,7 @@ func (c *fakeClient) Commit(_ context.Context, req *pb.CommitRequest, _ ...grpc.
|
||||
|
||||
func fakeRunQuery(in *pb.RunQueryRequest) (*pb.RunQueryResponse, error) {
|
||||
expectedIn := &pb.RunQueryRequest{
|
||||
QueryType: &pb.RunQueryRequest_Query{&pb.Query{
|
||||
QueryType: &pb.RunQueryRequest_Query{Query: &pb.Query{
|
||||
Kind: []*pb.KindExpression{{Name: "Gopher"}},
|
||||
}},
|
||||
}
|
||||
@@ -82,8 +82,8 @@ func fakeRunQuery(in *pb.RunQueryRequest) (*pb.RunQueryResponse, error) {
|
||||
Entity: &pb.Entity{
|
||||
Key: key1,
|
||||
Properties: map[string]*pb.Value{
|
||||
"Name": {ValueType: &pb.Value_StringValue{"George"}},
|
||||
"Height": {ValueType: &pb.Value_IntegerValue{32}},
|
||||
"Name": {ValueType: &pb.Value_StringValue{StringValue: "George"}},
|
||||
"Height": {ValueType: &pb.Value_IntegerValue{IntegerValue: 32}},
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -91,7 +91,7 @@ func fakeRunQuery(in *pb.RunQueryRequest) (*pb.RunQueryResponse, error) {
|
||||
Entity: &pb.Entity{
|
||||
Key: key2,
|
||||
Properties: map[string]*pb.Value{
|
||||
"Name": {ValueType: &pb.Value_StringValue{"Rufus"}},
|
||||
"Name": {ValueType: &pb.Value_StringValue{StringValue: "Rufus"}},
|
||||
// No height for Rufus.
|
||||
},
|
||||
},
|
||||
@@ -507,12 +507,20 @@ func TestReadOptions(t *testing.T) {
|
||||
want: nil,
|
||||
},
|
||||
{
|
||||
q: NewQuery("").Transaction(&Transaction{id: tid}),
|
||||
want: &pb.ReadOptions{&pb.ReadOptions_Transaction{tid}},
|
||||
q: NewQuery("").Transaction(&Transaction{id: tid}),
|
||||
want: &pb.ReadOptions{
|
||||
ConsistencyType: &pb.ReadOptions_Transaction{
|
||||
Transaction: tid,
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
q: NewQuery("").EventualConsistency(),
|
||||
want: &pb.ReadOptions{&pb.ReadOptions_ReadConsistency_{pb.ReadOptions_EVENTUAL}},
|
||||
q: NewQuery("").EventualConsistency(),
|
||||
want: &pb.ReadOptions{
|
||||
ConsistencyType: &pb.ReadOptions_ReadConsistency_{
|
||||
ReadConsistency: pb.ReadOptions_EVENTUAL,
|
||||
},
|
||||
},
|
||||
},
|
||||
} {
|
||||
req := &pb.RunQueryRequest{}
|
||||
|
||||
Reference in New Issue
Block a user