diff options
author | Paul Yang <TeBoring@users.noreply.github.com> | 2019-06-17 13:13:54 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-17 13:13:54 -0700 |
commit | abb4fb00408eff18c92bef388d963ad163f94e7f (patch) | |
tree | 18680247321c0a2f1479ccbdc9f9f9803068ccee | |
parent | 997bd354d55de6a8462ac3db0b002aa73b240cff (diff) | |
download | protobuf-abb4fb00408eff18c92bef388d963ad163f94e7f.tar.gz |
Change offset of Timestamp conformance test to distinguish from the default (#6263)
Fixes #4079
-rw-r--r-- | conformance/binary_json_conformance_suite.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/conformance/binary_json_conformance_suite.cc b/conformance/binary_json_conformance_suite.cc index 0995d3563..5ddb3a90b 100644 --- a/conformance/binary_json_conformance_suite.cc +++ b/conformance/binary_json_conformance_suite.cc @@ -1980,12 +1980,12 @@ void BinaryAndJsonConformanceSuite::RunSuiteImpl() { "repeated_timestamp: {seconds: 253402300799 nanos: 999999999}"); RunValidJsonTest( "TimestampWithPositiveOffset", REQUIRED, - R"({"optionalTimestamp": "1970-01-01T08:00:00+08:00"})", - "optional_timestamp: {seconds: 0}"); + R"({"optionalTimestamp": "1970-01-01T08:00:01+08:00"})", + "optional_timestamp: {seconds: 1}"); RunValidJsonTest( "TimestampWithNegativeOffset", REQUIRED, - R"({"optionalTimestamp": "1969-12-31T16:00:00-08:00"})", - "optional_timestamp: {seconds: 0}"); + R"({"optionalTimestamp": "1969-12-31T16:00:01-08:00"})", + "optional_timestamp: {seconds: 1}"); RunValidJsonTest( "TimestampNull", REQUIRED, R"({"optionalTimestamp": null})", |