From f0de013658e00c021091e395be2df36290c64195 Mon Sep 17 00:00:00 2001 From: Daniel Canter Date: Tue, 18 May 2021 19:08:59 -0700 Subject: [PATCH] Change VSMBNoDirectMap_WCOW_Hypervisor test to fix CI break In this PR (https://github.com/microsoft/hcsshim/pull/1019) I changed how we pass annotations to the cri-containerd suite, but this PR (https://github.com/microsoft/hcsshim/pull/1030) got in before which added a new test. This caused the CI to fail on checkin of the first PR. Always rebase kids Signed-off-by: Daniel Canter --- test/cri-containerd/runpodsandbox_test.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/test/cri-containerd/runpodsandbox_test.go b/test/cri-containerd/runpodsandbox_test.go index 9c3af7943e..130f067274 100644 --- a/test/cri-containerd/runpodsandbox_test.go +++ b/test/cri-containerd/runpodsandbox_test.go @@ -223,10 +223,13 @@ func Test_RunPodSandbox_VSMBNoDirectMap_WCOW_Hypervisor(t *testing.T) { pullRequiredImages(t, []string{imageWindowsNanoserver}) - request := getRunPodSandboxRequest(t, wcowHypervisorRuntimeHandler) - request.Config.Annotations = map[string]string{ - "io.microsoft.virtualmachine.wcow.virtualSMB.nodirectmap": "true", - } + request := getRunPodSandboxRequest( + t, + wcowHypervisorRuntimeHandler, + map[string]string{ + "io.microsoft.virtualmachine.wcow.virtualSMB.nodirectmap": "true", + }, + ) runPodSandboxTest(t, request) }