From: dyamy-lee Date: Mon, 13 Sep 2021 05:24:41 +0000 (+0900) Subject: mmifw-main-test : it needs a little time for receiving result of invoked proxy function. X-Git-Tag: submit/tizen/20210914.042010~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F37%2F264137%2F1;p=platform%2Fcore%2Fuifw%2Fmmi-framework.git mmifw-main-test : it needs a little time for receiving result of invoked proxy function. Change-Id: I12891c06d6d17fbc6a95d6780fe2242809b43ee5 --- diff --git a/tests/mmifw-main-test.cpp b/tests/mmifw-main-test.cpp index f217022..cd1bcad 100644 --- a/tests/mmifw-main-test.cpp +++ b/tests/mmifw-main-test.cpp @@ -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){