Fix check whether vm is alive
This commit is contained in:
parent
734240500b
commit
0e08d87a64
3
pew.go
3
pew.go
@ -630,9 +630,10 @@ func (cmd PewCmd) testArtifact(swg *sizedwaitgroup.SizedWaitGroup,
|
|||||||
defer q.Stop()
|
defer q.Stop()
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
for !q.Died {
|
|
||||||
time.Sleep(time.Minute)
|
time.Sleep(time.Minute)
|
||||||
|
for !q.Died {
|
||||||
slog.Debug().Msg("still alive")
|
slog.Debug().Msg("still alive")
|
||||||
|
time.Sleep(time.Minute)
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user