From 4670c9266ce2cc1134013f23042f8a372bea55a1 Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Fri, 1 Sep 2017 18:06:35 -0700 Subject: [PATCH] Bugfix in build test: ensure prev snapshot exists (#11912) Fix a test for build invalidation due to a change in main entry point. Previously this test's build was always invalidated to the the lack of a previous snapshot (as well as the change in checksums). This change ensures that the build is invalidated only due to the change in checksums. --- packages/flutter_tools/test/base/build_test.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/flutter_tools/test/base/build_test.dart b/packages/flutter_tools/test/base/build_test.dart index 90c84a62b3..de3e28ce34 100644 --- a/packages/flutter_tools/test/base/build_test.dart +++ b/packages/flutter_tools/test/base/build_test.dart @@ -404,6 +404,7 @@ void main() { await fs.file('main.dart').writeAsString('void main() {}'); await fs.file('other.dart').writeAsString('void main() { print("Kanpai ima kimi wa jinsei no ookina ookina butai ni tachi"); }'); + await fs.file('output.snapshot').create(); await fs.file('output.snapshot.d').writeAsString('output.snapshot : main.dart'); await fs.file('output.snapshot.d.checksums').writeAsString(JSON.encode({ 'version': '$kVersion',