Open kunlk opened 2 years ago
Hello, I have a query about the google.protobuf.Timestamp type conversion. My scenarios as below:
I have a google.protobuf.Timestamp type called expire_time which defined in proto file google.protobuf.Timestamp expire_time = 2;
google.protobuf.Timestamp expire_time = 2;
I defined stub file like below "input": { "equals": { "expire_time": "2022-06-21T16:38:39.607823Z" } }, "output": { "data": { "expire_time": "2022-06-21T16:38:39.607823Z" } }
"input": { "equals": { "expire_time": "2022-06-21T16:38:39.607823Z" } }, "output": { "data": { "expire_time": "2022-06-21T16:38:39.607823Z" } }
However, when running the test I got the error Can't find stub error Can't find stub { expire_time: map[nanos:6.07823e+08 seconds:1.655829519e+09] }
Can't find stub { expire_time: map[nanos:6.07823e+08 seconds:1.655829519e+09] }
I know the timestamp data format is changed, so in this case how could I define the input value in the stub file ?
Hello, I have a query about the google.protobuf.Timestamp type conversion. My scenarios as below:
I have a google.protobuf.Timestamp type called expire_time which defined in proto file
google.protobuf.Timestamp expire_time = 2;
I defined stub file like below
"input": { "equals": { "expire_time": "2022-06-21T16:38:39.607823Z" } }, "output": { "data": { "expire_time": "2022-06-21T16:38:39.607823Z" } }
However, when running the test I got the error Can't find stub error
Can't find stub { expire_time: map[nanos:6.07823e+08 seconds:1.655829519e+09] }
I know the timestamp data format is changed, so in this case how could I define the input value in the stub file ?