Merge pull request #42874 from thaJeztah/fix_TestVerifyPlatformContainerResources

daemon: fix TestVerifyPlatformContainerResources not capturing variable
This commit is contained in:
Sebastiaan van Stijn 2021-10-21 21:12:33 +02:00 committed by GitHub
commit 8f4d85801f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)