Unverified Commit 9fa0f3b2 authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

fix test for null flutter root (#44468)

parent 03ac37af
......@@ -87,11 +87,16 @@ class AssembleCommand extends FlutterCommand {
if (futterProject == null) {
return const <CustomDimensions, String>{};
}
try {
final Environment localEnvironment = environment;
return <CustomDimensions, String>{
CustomDimensions.commandBuildBundleTargetPlatform: localEnvironment.defines['TargetPlatform'],
CustomDimensions.commandBuildBundleIsModule: '${futterProject.isModule}',
};
} catch (err) {
// We've failed to send usage.
}
return const <CustomDimensions, String>{};
}
/// The target we are building.
......
......@@ -18,15 +18,13 @@ import '../../src/testbed.dart';
void main() {
Testbed testbed;
MockBuildSystem mockBuildSystem;
setUpAll(() {
Cache.disableLocking();
});
setUp(() {
mockBuildSystem = MockBuildSystem();
testbed = Testbed(overrides: <Type, Generator>{
BuildSystem: () => mockBuildSystem,
Cache: () => FakeCache(),
});
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment