Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

google.protobuf.Timestamp type conversion in stub #121

Open
kunlk opened this issue Jul 29, 2022 · 0 comments
Open

google.protobuf.Timestamp type conversion in stub #121

kunlk opened this issue Jul 29, 2022 · 0 comments

Comments

@kunlk
Copy link

kunlk commented Jul 29, 2022

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant