@@ -3,6 +3,7 @@ package v7action_test
33import (
44 "errors"
55 "fmt"
6+ "time"
67
78 . "code.cloudfoundry.org/cli/v9/actor/v7action"
89 "code.cloudfoundry.org/cli/v9/actor/v7action/v7actionfakes"
@@ -301,7 +302,7 @@ var _ = Describe("Application Summary Actions", func() {
301302 Command : * types .NewFilteredString ("[Redacted Value]" ),
302303 MemoryInMB : types.NullUint64 {Value : 32 , IsSet : true },
303304 AppGUID : "some-app-guid" ,
304- EmbeddedProcessInstances : & []resources.EmbeddedProcessInstance {
305+ EmbeddedProcessInstances : []resources.EmbeddedProcessInstance {
305306 {Index : 0 , State : "RUNNING" , Since : 300 },
306307 {Index : 1 , State : "CRASHED" , Since : 0 },
307308 },
@@ -312,7 +313,7 @@ var _ = Describe("Application Summary Actions", func() {
312313 Command : * types .NewFilteredString ("[Redacted Value]" ),
313314 MemoryInMB : types.NullUint64 {Value : 64 , IsSet : true },
314315 AppGUID : "some-app-guid" ,
315- EmbeddedProcessInstances : & []resources.EmbeddedProcessInstance {
316+ EmbeddedProcessInstances : []resources.EmbeddedProcessInstance {
316317 {Index : 0 , State : "RUNNING" , Since : 500 },
317318 {Index : 1 , State : "RUNNING" , Since : 600 },
318319 },
@@ -343,7 +344,7 @@ var _ = Describe("Application Summary Actions", func() {
343344 Command : * types .NewFilteredString ("[Redacted Value]" ),
344345 MemoryInMB : types.NullUint64 {Value : 64 , IsSet : true },
345346 AppGUID : "some-app-guid" ,
346- EmbeddedProcessInstances : & []resources.EmbeddedProcessInstance {
347+ EmbeddedProcessInstances : []resources.EmbeddedProcessInstance {
347348 {Index : 0 , State : "RUNNING" , Since : 500 },
348349 {Index : 1 , State : "RUNNING" , Since : 600 },
349350 },
@@ -352,12 +353,12 @@ var _ = Describe("Application Summary Actions", func() {
352353 {
353354 Index : 0 ,
354355 State : "RUNNING" ,
355- Uptime : 500 ,
356+ Uptime : 500 * time . Second ,
356357 },
357358 {
358359 Index : 1 ,
359360 State : "RUNNING" ,
360- Uptime : 600 ,
361+ Uptime : 600 * time . Second ,
361362 },
362363 },
363364 },
@@ -368,7 +369,7 @@ var _ = Describe("Application Summary Actions", func() {
368369 Type : "some-type" ,
369370 Command : * types .NewFilteredString ("[Redacted Value]" ),
370371 AppGUID : "some-app-guid" ,
371- EmbeddedProcessInstances : & []resources.EmbeddedProcessInstance {
372+ EmbeddedProcessInstances : []resources.EmbeddedProcessInstance {
372373 {Index : 0 , State : "RUNNING" , Since : 300 },
373374 {Index : 1 , State : "CRASHED" , Since : 0 },
374375 },
@@ -377,12 +378,12 @@ var _ = Describe("Application Summary Actions", func() {
377378 {
378379 Index : 0 ,
379380 State : "RUNNING" ,
380- Uptime : 300 ,
381+ Uptime : 300 * time . Second ,
381382 },
382383 {
383384 Index : 1 ,
384385 State : "CRASHED" ,
385- Uptime : 0 ,
386+ Uptime : 0 * time . Second ,
386387 },
387388 },
388389 },
0 commit comments