Depend on specific package versions in module_test (#43388)

This will prevent the test from flaking based on updates to either
package.
This commit is contained in:
Michael Klimushyn
2019-10-25 15:19:02 -07:00
committed by GitHub
parent 8e8d235dd1
commit 5a08b0a720

View File

@@ -45,7 +45,7 @@ Future<void> main() async {
String content = await pubspec.readAsString();
content = content.replaceFirst(
'\ndependencies:\n',
'\ndependencies:\n device_info:\n package_info:\n',
'\ndependencies:\n device_info: 0.4.1\n package_info: 0.4.0+9\n',
);
await pubspec.writeAsString(content, flush: true);
await inDirectory(projectDir, () async {