浏览代码

Merge pull request #42874 from thaJeztah/fix_TestVerifyPlatformContainerResources

daemon: fix TestVerifyPlatformContainerResources not capturing variable
Sebastiaan van Stijn 3 年之前
父节点
当前提交
8f4d85801f
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      daemon/daemon_unix_test.go

+ 1 - 0
daemon/daemon_unix_test.go

@@ -356,6 +356,7 @@ func TestVerifyPlatformContainerResources(t *testing.T) {
 		},
 	}
 	for _, tc := range tests {
+		tc := tc
 		t.Run(tc.name, func(t *testing.T) {
 			t.Parallel()
 			warnings, err := verifyPlatformContainerResources(&tc.resources, &tc.sysInfo, tc.update)