Преглед изворни кода

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)