Skip to content

Commit eb120d2

Browse files
authored
Merge pull request #6354 from thaJeztah/28.x_backport_rm_json_deprecated
[28.x backport] internal/jsonstream: remove uses of deprecated fields
2 parents bb2ed91 + 82c5138 commit eb120d2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

internal/jsonstream/display_test.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,8 @@ func TestDisplay(t *testing.T) {
3030
return
3131
default:
3232
err := enc.Encode(JSONMessage{
33-
Status: "Downloading",
34-
ID: fmt.Sprintf("id-%d", i),
35-
TimeNano: time.Now().UnixNano(),
36-
Time: time.Now().Unix(),
33+
Status: "Downloading",
34+
ID: fmt.Sprintf("id-%d", i),
3735
Progress: &JSONProgress{
3836
Current: int64(i),
3937
Total: 100,

0 commit comments

Comments
 (0)