Read correct cached VM snapshot in dynamic mode (PRODUCT vs RELEASE) (#25472)
This commit is contained in:
committed by
GitHub
parent
e41f1463cd
commit
0d4f279fb8
@@ -526,8 +526,13 @@ void main() {
|
||||
snapshotter = JITSnapshotter();
|
||||
mockAndroidSdk = MockAndroidSdk();
|
||||
mockArtifacts = MockArtifacts();
|
||||
when(mockArtifacts.getArtifactPath(Artifact.vmSnapshotData)).thenReturn(kEngineVmSnapshotData);
|
||||
when(mockArtifacts.getArtifactPath(Artifact.isolateSnapshotData)).thenReturn(kEngineIsolateSnapshotData);
|
||||
|
||||
for (BuildMode mode in BuildMode.values) {
|
||||
when(mockArtifacts.getArtifactPath(Artifact.vmSnapshotData, null, mode))
|
||||
.thenReturn(kEngineVmSnapshotData);
|
||||
when(mockArtifacts.getArtifactPath(Artifact.isolateSnapshotData, null, mode))
|
||||
.thenReturn(kEngineIsolateSnapshotData);
|
||||
}
|
||||
});
|
||||
|
||||
final Map<Type, Generator> contextOverrides = <Type, Generator>{
|
||||
|
||||
Reference in New Issue
Block a user