Fixes a common crash in getAdbDevices when adb executable isn't found. (#22676)
Apparently, this accounts for 13% of our crashes in Beta.
This commit is contained in:
@@ -84,7 +84,7 @@ void updateFileModificationTime(String path,
|
||||
}
|
||||
|
||||
/// Matcher for functions that throw [ToolExit].
|
||||
Matcher throwsToolExit({int exitCode, String message}) {
|
||||
Matcher throwsToolExit({int exitCode, Pattern message}) {
|
||||
Matcher matcher = isToolExit;
|
||||
if (exitCode != null)
|
||||
matcher = allOf(matcher, (ToolExit e) => e.exitCode == exitCode);
|
||||
|
||||
Reference in New Issue
Block a user