Skip to content

Commit 0395cdb

Browse files
authored
Merge pull request #6353 from thaJeztah/rm_json_deprecated
internal/jsonstream: remove uses of deprecated fields
2 parents 5ab12e6 + 045ac0b commit 0395cdb

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
@@ -31,10 +31,8 @@ func TestDisplay(t *testing.T) {
3131
return
3232
default:
3333
err := enc.Encode(JSONMessage{
34-
Status: "Downloading",
35-
ID: fmt.Sprintf("id-%d", i),
36-
TimeNano: time.Now().UnixNano(),
37-
Time: time.Now().Unix(),
34+
Status: "Downloading",
35+
ID: fmt.Sprintf("id-%d", i),
3836
Progress: &JSONProgress{
3937
Progress: jsonstream.Progress{
4038
Current: int64(i),

0 commit comments

Comments
 (0)