Skip to content

Commit 5285a2a

Browse files
authored
Merge pull request firecracker-microvm#487 from kzys/enable-pause-resume-tests
Enable tests regarding Pause/Resume
2 parents 41c29c8 + 4fe9493 commit 5285a2a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

runtime/service_integ_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2040,7 +2040,7 @@ func TestCreateVM_Isolated(t *testing.T) {
20402040
}
20412041
}
20422042

2043-
func TestPauseResume(t *testing.T) {
2043+
func TestPauseResume_Isolated(t *testing.T) {
20442044
prepareIntegTest(t)
20452045

20462046
client, err := containerd.New(containerdSockPath, containerd.WithDefaultRuntime(firecrackerRuntime))
@@ -2152,6 +2152,10 @@ func TestPauseResume(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)