@@ -3,6 +3,7 @@ package v7action_test
33import (
44 "errors"
55 "fmt"
6+ "time"
67
78 "code.cloudfoundry.org/cli/v8/actor/actionerror"
89 . "code.cloudfoundry.org/cli/v8/actor/v7action"
@@ -300,7 +301,7 @@ var _ = Describe("Application Summary Actions", func() {
300301 Command : * types .NewFilteredString ("[Redacted Value]" ),
301302 MemoryInMB : types.NullUint64 {Value : 32 , IsSet : true },
302303 AppGUID : "some-app-guid" ,
303- EmbeddedProcessInstances : & []resources.EmbeddedProcessInstance {
304+ EmbeddedProcessInstances : []resources.EmbeddedProcessInstance {
304305 {Index : 0 , State : "RUNNING" , Since : 300 },
305306 {Index : 1 , State : "CRASHED" , Since : 0 },
306307 },
@@ -311,7 +312,7 @@ var _ = Describe("Application Summary Actions", func() {
311312 Command : * types .NewFilteredString ("[Redacted Value]" ),
312313 MemoryInMB : types.NullUint64 {Value : 64 , IsSet : true },
313314 AppGUID : "some-app-guid" ,
314- EmbeddedProcessInstances : & []resources.EmbeddedProcessInstance {
315+ EmbeddedProcessInstances : []resources.EmbeddedProcessInstance {
315316 {Index : 0 , State : "RUNNING" , Since : 500 },
316317 {Index : 1 , State : "RUNNING" , Since : 600 },
317318 },
@@ -342,7 +343,7 @@ var _ = Describe("Application Summary Actions", func() {
342343 Command : * types .NewFilteredString ("[Redacted Value]" ),
343344 MemoryInMB : types.NullUint64 {Value : 64 , IsSet : true },
344345 AppGUID : "some-app-guid" ,
345- EmbeddedProcessInstances : & []resources.EmbeddedProcessInstance {
346+ EmbeddedProcessInstances : []resources.EmbeddedProcessInstance {
346347 {Index : 0 , State : "RUNNING" , Since : 500 },
347348 {Index : 1 , State : "RUNNING" , Since : 600 },
348349 },
@@ -351,12 +352,12 @@ var _ = Describe("Application Summary Actions", func() {
351352 {
352353 Index : 0 ,
353354 State : "RUNNING" ,
354- Uptime : 500 ,
355+ Uptime : 500 * time . Second ,
355356 },
356357 {
357358 Index : 1 ,
358359 State : "RUNNING" ,
359- Uptime : 600 ,
360+ Uptime : 600 * time . Second ,
360361 },
361362 },
362363 },
@@ -367,7 +368,7 @@ var _ = Describe("Application Summary Actions", func() {
367368 Type : "some-type" ,
368369 Command : * types .NewFilteredString ("[Redacted Value]" ),
369370 AppGUID : "some-app-guid" ,
370- EmbeddedProcessInstances : & []resources.EmbeddedProcessInstance {
371+ EmbeddedProcessInstances : []resources.EmbeddedProcessInstance {
371372 {Index : 0 , State : "RUNNING" , Since : 300 },
372373 {Index : 1 , State : "CRASHED" , Since : 0 },
373374 },
@@ -376,12 +377,12 @@ var _ = Describe("Application Summary Actions", func() {
376377 {
377378 Index : 0 ,
378379 State : "RUNNING" ,
379- Uptime : 300 ,
380+ Uptime : 300 * time . Second ,
380381 },
381382 {
382383 Index : 1 ,
383384 State : "CRASHED" ,
384- Uptime : 0 ,
385+ Uptime : 0 * time . Second ,
385386 },
386387 },
387388 },
0 commit comments