Skip to content

Commit f96b34d

Browse files
committed
Fix device-plugin-test flaky test
If assignedStr and expectedStr is empty this test fails. This commit tries to fix this
1 parent f5c7b42 commit f96b34d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/e2e_node/device_plugin_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,9 +1093,12 @@ func checkPodResourcesAssignment(v1PodRes *kubeletpodresourcesv1.ListPodResource
10931093
}
10941094

10951095
func matchContainerDevices(ident string, contDevs []*kubeletpodresourcesv1.ContainerDevices, resourceName string, devs []string) (error, bool) {
1096+
framework.Logf("Sotiris temp debug of failing device plugin test %s", devs)
10961097
expected := sets.New[string](devs...)
10971098
assigned := sets.New[string]()
1099+
framework.Logf("Sotiris attempt 1")
10981100
for _, contDev := range contDevs {
1101+
framework.Logf("Sotiris temp debug of failing test contDev %s resourceName %s", contDev, resourceName)
10991102
if contDev.ResourceName != resourceName {
11001103
continue
11011104
}

0 commit comments

Comments
 (0)