Not suppressing exceptions in tests.
This makes it harder to diagnose problems.
Bug: 117888000
Test: all tests affected by the change
Change-Id: I354e86af0929531653cf59ce1eb6435018c20e1a
diff --git a/tests/src/com/android/launcher3/util/Wait.java b/tests/src/com/android/launcher3/util/Wait.java
index 0e41c02..593cce8 100644
--- a/tests/src/com/android/launcher3/util/Wait.java
+++ b/tests/src/com/android/launcher3/util/Wait.java
@@ -23,7 +23,7 @@
return;
}
} catch (Throwable t) {
- // Ignore
+ throw new RuntimeException(t);
}
SystemClock.sleep(sleepMillis);
}
@@ -34,7 +34,7 @@
return;
}
} catch (Throwable t) {
- // Ignore
+ throw new RuntimeException(t);
}
Assert.fail(message);
}