daemon: fix TestVerifyPlatformContainerResources not capturing variable
This test runs with t.Parallel() _and_ uses subtests, but didn't capture
the `tc` variable, which potentialy (likely) makes it test the same testcase
multiple times.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 0c887404a8
)
Signed-off-by: Cory Snider <csnider@mirantis.com>
This commit is contained in:
parent
526d21449e
commit
f98e22354f
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue