Skip to content

Commit

Permalink
fix: Add vm reset for flaky vm stop test
Browse files Browse the repository at this point in the history
Signed-off-by: Shubharanshu Mahapatra <shubhum@amazon.com>
  • Loading branch information
Shubhranshu153 committed Nov 18, 2024
1 parent 3a81c08 commit 06c57c1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions e2e/vm/lifecycle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ var testVMLifecycle = func(o *option.Option) {
})

ginkgo.It("should be able to force stop the virtual machine", func() {
// TODO: wsl2 stop is flaky for stop requests. Once in that state, it cannot recover to subsequent stop requests
// Adding reset VM to overcome flakiness until correct solution is found.
resetVM(o)
command.New(o, virtualMachineRootCmd, "init").WithTimeoutInSeconds(160).Run()
command.Run(o, "images")
command.New(o, virtualMachineRootCmd, "stop", "--force").WithTimeoutInSeconds(180).Run()
command.RunWithoutSuccessfulExit(o, "images")
Expand Down

0 comments on commit 06c57c1

Please sign in to comment.