From acbf0a85560e8946e09d6f8c9ecf343ef9f93e5b Mon Sep 17 00:00:00 2001 From: Hamza El-Saawy Date: Tue, 10 May 2022 15:02:24 -0400 Subject: [PATCH] testing bugs Process-isolated tests used the wrong runtime constant. Renamed CRI plugin file to have `_test` suffix so language server does not complain about undefined functions and values. Signed-off-by: Hamza El-Saawy --- test/cri-containerd/containerdrestart_test.go | 4 ++-- .../{cri_plugins.go => helper_cri_plugins_test.go} | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename test/cri-containerd/{cri_plugins.go => helper_cri_plugins_test.go} (100%) diff --git a/test/cri-containerd/containerdrestart_test.go b/test/cri-containerd/containerdrestart_test.go index e648c04c33..621ac734f1 100644 --- a/test/cri-containerd/containerdrestart_test.go +++ b/test/cri-containerd/containerdrestart_test.go @@ -115,7 +115,7 @@ func Test_Container_CRI_Restart(t *testing.T) { { Name: "WCOW_Process", Feature: featureWCOWProcess, - Runtime: wcowHypervisorRuntimeHandler, + Runtime: wcowProcessRuntimeHandler, Image: imageWindowsNanoserver, Command: []string{ "cmd", @@ -261,7 +261,7 @@ func Test_Container_CRI_Restart_State(t *testing.T) { { Name: "WCOW_Process", Feature: featureWCOWProcess, - Runtime: wcowHypervisorRuntimeHandler, + Runtime: wcowProcessRuntimeHandler, Image: imageWindowsNanoserver, Command: []string{"cmd", "/c", "ping -t 127.0.0.1"}, SetStateCommand: []string{"cmd", "/c", "echo - >> " + wcowTestFile}, diff --git a/test/cri-containerd/cri_plugins.go b/test/cri-containerd/helper_cri_plugins_test.go similarity index 100% rename from test/cri-containerd/cri_plugins.go rename to test/cri-containerd/helper_cri_plugins_test.go