mirror of
https://github.com/flutter/flutter
synced 2024-10-14 04:02:56 +00:00
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.
This commit is contained in:
parent
b29680cccf
commit
4670c9266c
|
@ -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(<String, dynamic>{
|
||||
'version': '$kVersion',
|
||||
|
|
Loading…
Reference in a new issue