android_tests/lib/android/specs/common/helper.rb in appium_lib-2.0.0 vs android_tests/lib/android/specs/common/helper.rb in appium_lib-2.1.0

- old
+ new

@@ -13,10 +13,11 @@ proc { wait(*wait_time) { raise } }.must_raise Timeout::Error # regular rescue will not handle exceptions outside of StandardError hierarchy # must rescue Exception explicitly to rescue everything proc { wait(*wait_time) { raise NoMemoryError } }.must_raise Timeout::Error + proc { wait(0.2, 0.0) { raise NoMemoryError } }.must_raise Timeout::Error end t 'ignore' do # ignore should rescue all exceptions ignore { true } @@ -38,10 +39,11 @@ # raise should error proc { wait_true(*wait_time) { raise } }.must_raise Timeout::Error # regular rescue will not handle exceptions outside of StandardError hierarchy # must rescue Exception explicitly to rescue everything - proc { wait(*wait_time) { raise NoMemoryError } }.must_raise Timeout::Error + proc { wait_true(*wait_time) { raise NoMemoryError } }.must_raise Timeout::Error + proc { wait_true(0.2, 0.0) { raise NoMemoryError } }.must_raise Timeout::Error end t 'back' do # start page wait { texts.length.must_equal 12 } \ No newline at end of file