Skip to content

Commit 4fe9493

Browse files
committed
Call ResumeVM before StopVM
Currently StopVM doesn't work when the VM is paused, since StopVM calls its in-VM agent. The agent cannot respond when the VM itself is paused. Signed-off-by: Kazuyoshi Kato <[email protected]>
1 parent 01f0478 commit 4fe9493

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

runtime/service_integ_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2152,6 +2152,10 @@ func TestPauseResume_Isolated(t *testing.T) {
21522152
// Ensure the response fields are populated correctly
21532153
assert.Equal(t, request.VMID, resp.VMID)
21542154

2155+
// Currently StopVM doesn't work when the VM is paused, since StopVM calls its in-VM agent.
2156+
_, err = fcClient.ResumeVM(ctx, &proto.ResumeVMRequest{VMID: request.VMID})
2157+
require.Equal(t, status.Code(err), codes.OK)
2158+
21552159
_, err = fcClient.StopVM(ctx, &proto.StopVMRequest{VMID: request.VMID})
21562160
require.Equal(t, status.Code(err), codes.OK)
21572161
}

0 commit comments

Comments
 (0)