From fe5b0694c9c3400653f8057e3199af9b3a45cbae Mon Sep 17 00:00:00 2001 From: Vishnu kannan Date: Tue, 24 May 2016 15:24:36 -0700 Subject: [PATCH] build ginkgo on-demand Signed-off-by: Vishnu kannan --- test/e2e_node/privileged_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e_node/privileged_test.go b/test/e2e_node/privileged_test.go index 345105512a6..5d633650493 100644 --- a/test/e2e_node/privileged_test.go +++ b/test/e2e_node/privileged_test.go @@ -78,11 +78,11 @@ var _ = Describe("PrivilegedPod", func() { By("Executing privileged command on privileged container") outputMap := dialFromContainer(restClientConfig, f, hostExecPod, privilegedPod.Status.PodIP, privilegedHttpPort) - Expect(len(outputMap["error"]) == 0).To(BeTrue(), fmt.Sprintf("Privileged command failed unexpectedly on privileged container, output: %v", outputMap)) + Expect(outputMap["error"]).To(BeEmpty(), fmt.Sprintf("Privileged command failed unexpectedly on privileged container, output: %v", outputMap)) By("Executing privileged command on non-privileged container") outputMap = dialFromContainer(restClientConfig, f, hostExecPod, privilegedPod.Status.PodIP, notPrivilegedHttpPort) - Expect(len(outputMap["error"]) > 0).To(BeTrue(), fmt.Sprintf("Privileged command should have failed on non-privileged container, output: %v", outputMap)) + Expect(outputMap["error"]).To(BeEmpty(), fmt.Sprintf("Privileged command should have failed on non-privileged container, output: %v", outputMap)) }) })