Merge "Fix flakiness MtpManagerTest test."

This commit is contained in:
Daichi Hirono
2015-12-24 04:07:27 +00:00
committed by Android (Google) Code Review

View File

@@ -61,8 +61,9 @@ public class MtpManagerTest extends InstrumentationTestCase {
@Override
public Boolean call() throws IOException {
try {
mManager.readEvent(mUsbDevice.getDeviceId(), signal);
return false;
while (true) {
mManager.readEvent(mUsbDevice.getDeviceId(), signal);
}
} catch (OperationCanceledException exception) {
return true;
}