Wait for power module error to show up

Change-Id: Id33c2b5d13c0f8df6db726a76ed7bade5397fd7d
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/tests/test_power_supply.robot b/tests/test_power_supply.robot
index 2ce4d80..75879ad 100644
--- a/tests/test_power_supply.robot
+++ b/tests/test_power_supply.robot
@@ -90,8 +90,9 @@
     REST Power On  stack_mode=skip
 
     Set Power Supply Present  ${0}
-    Sleep  5s
-    Logging Entry Should Exist
+
+    Wait Until Keyword Succeeds  30 sec  10 sec
+    ...  Logging Entry Should Exist
     ...  xyz.openbmc_project.Inventory.Error.NotPresent
 
 *** Keywords ***