diff options
| author | Joe Tsai <joetsai@digital-static.net> | 2025-06-17 12:34:22 -0700 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-06-23 18:27:10 -0700 |
| commit | ed7815726db4a0eb904d7cae2532cde48348d7ff (patch) | |
| tree | f850ab35c4fa8f1d52a1f505ceb71b3d21dbe811 /src/encoding/json/v2_diff_test.go | |
| parent | f866958246556ec609b81d31376a39efe9d51a51 (diff) | |
| download | go-ed7815726db4a0eb904d7cae2532cde48348d7ff.tar.xz | |
encoding/json/v2: report error on time.Duration without explicit format
The default representation of a time.Duration is still undecided.
In order to keep the future open, report an error on a time.Duration
without an explicit format flag provided.
Updates #71631
Change-Id: I08248404ff6551723851417c8188a13f53c61937
Reviewed-on: https://go-review.googlesource.com/c/go/+/682455
Auto-Submit: Joseph Tsai <joetsai@digital-static.net>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
Diffstat (limited to 'src/encoding/json/v2_diff_test.go')
| -rw-r--r-- | src/encoding/json/v2_diff_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/encoding/json/v2_diff_test.go b/src/encoding/json/v2_diff_test.go index 871be49776..7a561732f4 100644 --- a/src/encoding/json/v2_diff_test.go +++ b/src/encoding/json/v2_diff_test.go @@ -1038,6 +1038,7 @@ func TestMergeComposite(t *testing.T) { // // https://go.dev/issue/10275 func TestTimeDurations(t *testing.T) { + t.SkipNow() // TODO(https://go.dev/issue/71631): The default representation of time.Duration is still undecided. for _, json := range jsonPackages { t.Run(path.Join("Marshal", json.Version), func(t *testing.T) { got, err := json.Marshal(time.Minute) |
