提交 eb3b8a75 编写于 作者: P pssea

fix render test case fail sometime

Change-Id: Iee7d6dd2420622dd5a090e316b1054ca2e048a27
上级 839d2fb5
......@@ -98,6 +98,7 @@ HWTEST_F(RenderTest, Graphic_RenderTest_Test_Measuer_001, TestSize.Level0)
g_measureCount = 0;
RenderTest::CreateDefaultWindow(rootView, 0, 0);
sleep(DEFAULT_TASK_PERIOD);
TaskManager::GetInstance()->TaskHandler();
EXPECT_EQ(g_measureCount, 2); // 2: measure view
rootView->RemoveAll();
......@@ -129,6 +130,7 @@ HWTEST_F(RenderTest, Graphic_RenderTest_Test_Measuer_02, TestSize.Level0)
g_measureCount = 0;
RenderTest::CreateDefaultWindow(rootView, 0, 0);
sleep(DEFAULT_TASK_PERIOD);
TaskManager::GetInstance()->TaskHandler();
EXPECT_EQ(g_measureCount, 1);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册