mmifw-main-test : it needs a little time for receiving result of invoked proxy function. 37/264137/1
authordyamy-lee <dyamy.lee@samsung.com>
Mon, 13 Sep 2021 05:24:41 +0000 (14:24 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Mon, 13 Sep 2021 12:15:06 +0000 (21:15 +0900)
Change-Id: I12891c06d6d17fbc6a95d6780fe2242809b43ee5

tests/mmifw-main-test.cpp

index f217022297fb84d56f249b9f1bc7b422c867b495..cd1bcad25f5e293a894c2f145b5beca435f19f97 100644 (file)
@@ -317,6 +317,12 @@ TEST_F(MMIFWMainTest, MMIFWMainRequestSendGetFocus)
                EXPECT_EQ(mmi_res, MMI_RESULT_SUCCESS);
        }
 
+       while (timer != 150000)
+       {
+               ecore_main_loop_iterate();
+               timer++;
+       }
+
        if(h){
                mmi_instance_destroy(h);
 
@@ -358,8 +364,20 @@ TEST_F(MMIFWMainTest, MMIFWMainRequestSendSetGetState)
                mmi_res  = mmi_request_send_set_state(h, state);
                EXPECT_EQ(mmi_res, MMI_RESULT_SUCCESS);
 
+               while (timer != 150000)
+               {
+                       ecore_main_loop_iterate();
+                       timer++;
+               }
+
                state = mmi_state_get_current_state(h);
-               EXPECT_NE(state, MMI_STATE_NONE);
+               EXPECT_EQ(state, MMI_STATE_INITIATION);
+       }
+
+       while (timer != 150000)
+       {
+               ecore_main_loop_iterate();
+               timer++;
        }
 
        if(h){