on xenial help sign in
reshuffle while
commit70c29c3cbfb1ee3c617521626c9960a0f3a12fde authorAlbert Astals Cid <albert.astals@canonical.com> dateThu 12 May 2016, 12:14 (10 years ago) parent2123eb8
1 file changed+2−4
tests/utils/modules/Unity/Test/UnityTestCase.qml+2−4
tests/utils/modules/Unity/Test/UnityTestCase.qml+2−4
@@ -206,11 +206,9 @@ TestCase {
206206 var child = findChildIn(obj, prop, objectName);
207207
208208 while (timeSpent < timeout && !child) {
209+ wait(50)
210+ timeSpent += 50
209211 child = findChildIn(obj, prop, objectName);
210− if (!child) {
211− wait(50)
212− timeSpent += 50
213− }
214212 }
215213 return child;
216214 }