@@ -84,10 +84,16 @@ var _ = Describe("podman machine list", func() {
8484session , err := mb .setCmd (i .withImagePath (mb .imagePath )).run ()
8585Expect (err ).ToNot (HaveOccurred ())
8686Expect (session ).To (Exit (0 ))
87+
88+ l := new (listMachine )
89+ listSession , err := mb .setCmd (l .withFormat ("{{.LastUp}}" )).run ()
90+ Expect (err ).NotTo (HaveOccurred ())
91+ Expect (listSession ).To (Exit (0 ))
92+ Expect (listSession .outputToString ()).To (Equal ("Never" ))
93+
8794s := new (startMachine )
8895startSession , err := mb .setCmd (s ).runWithoutWait ()
8996Expect (err ).ToNot (HaveOccurred ())
90- l := new (listMachine )
9197for i := 0 ; i < 30 ; i ++ {
9298listSession , err := mb .setCmd (l ).run ()
9399Expect (listSession ).To (Exit (0 ))
@@ -100,7 +106,7 @@ var _ = Describe("podman machine list", func() {
100106time .Sleep (3 * time .Second )
101107}
102108Expect (startSession ).To (Exit (0 ))
103- listSession , err : = mb .setCmd (l ).run ()
109+ listSession , err = mb .setCmd (l ).run ()
104110Expect (listSession ).To (Exit (0 ))
105111Expect (err ).ToNot (HaveOccurred ())
106112Expect (listSession .outputToString ()).To (ContainSubstring ("Currently running" ))
0 commit comments