jsonclient: don't depend on error text from other packages in tests#1741
jsonclient: don't depend on error text from other packages in tests#1741phbnf merged 1 commit intogoogle:masterfrom
Conversation
TestPostAndParse depends on the exact text of errors returned by encoding/json. The text of some of these error changes when GOEXPERIMENT=jsonv2 is set, causing the test to fail. Change the test to not depend on the text of errors that are not contained in this module.
|
/gcbrun |
1 similar comment
|
/gcbrun |
|
These failures seem unrelated to this change. The first one was a timeout: The second one is a server startup failure: I can see some proto diffs in the tests though, @roger2hk , I think we need to regenerate protos after #1736? I thought that tests would fail if there was a diff, but it looks like tests in that PR didn't fail even though there was a diff? |
AFAIK. The proto diff in the tests will not fail the check in this repository. The I've triggered to retry the failed test. |
…oogle#1741) TestPostAndParse depends on the exact text of errors returned by encoding/json. The text of some of these error changes when GOEXPERIMENT=jsonv2 is set, causing the test to fail. Change the test to not depend on the text of errors that are not contained in this module.
TestPostAndParse depends on the exact text of errors returned by encoding/json.
The text of some of these error changes when GOEXPERIMENT=jsonv2 is set,
causing the test to fail.
Change the test to not depend on the text of errors that are not contained
in this module.