diff --git a/test/e2e_node/device_plugin_test.go b/test/e2e_node/device_plugin_test.go index 16a2c8a3eda..b8e10c2f3fe 100644 --- a/test/e2e_node/device_plugin_test.go +++ b/test/e2e_node/device_plugin_test.go @@ -166,7 +166,7 @@ func testDevicePlugin(f *framework.Framework, pluginSockDir string) { deviceIDRE := "stub devices: (Dev-[0-9]+)" devID1, err := parseLog(ctx, f, pod1.Name, pod1.Name, deviceIDRE) framework.ExpectNoError(err, "getting logs for pod %q", pod1.Name) - gomega.Expect(devID1).To(gomega.Not(gomega.Equal(""))) + gomega.Expect(devID1).To(gomega.Not(gomega.Equal("")), "pod1 requested a device but started successfully without") v1alphaPodResources, err = getV1alpha1NodeDevices(ctx) framework.ExpectNoError(err) @@ -227,7 +227,7 @@ func testDevicePlugin(f *framework.Framework, pluginSockDir string) { deviceIDRE := "stub devices: (Dev-[0-9]+)" devID1, err := parseLog(ctx, f, pod1.Name, pod1.Name, deviceIDRE) framework.ExpectNoError(err, "getting logs for pod %q", pod1.Name) - gomega.Expect(devID1).To(gomega.Not(gomega.Equal(""))) + gomega.Expect(devID1).To(gomega.Not(gomega.Equal("")), "pod1 requested a device but started successfully without") pod1, err = e2epod.NewPodClient(f).Get(ctx, pod1.Name, metav1.GetOptions{}) framework.ExpectNoError(err) @@ -260,7 +260,7 @@ func testDevicePlugin(f *framework.Framework, pluginSockDir string) { devID1, err := parseLog(ctx, f, pod1.Name, pod1.Name, deviceIDRE) framework.ExpectNoError(err, "getting logs for pod %q", pod1.Name) - gomega.Expect(devID1).To(gomega.Not(gomega.Equal(""))) + gomega.Expect(devID1).To(gomega.Not(gomega.Equal("")), "pod1 requested a device but started successfully without") pod1, err = e2epod.NewPodClient(f).Get(ctx, pod1.Name, metav1.GetOptions{}) framework.ExpectNoError(err) @@ -303,7 +303,7 @@ func testDevicePlugin(f *framework.Framework, pluginSockDir string) { devID2, err := parseLog(ctx, f, pod2.Name, pod2.Name, deviceIDRE) framework.ExpectNoError(err, "getting logs for pod %q", pod2.Name) - gomega.Expect(devID1).To(gomega.Not(gomega.Equal(devID2))) + gomega.Expect(devID1).To(gomega.Not(gomega.Equal(devID2)), "pod2 requested a device but started successfully without") }) }) }