Unverified Commit 8d706869 authored by chunhtai's avatar chunhtai Committed by GitHub

Fixes resident_web_runner_test initialize the mock correctly (#90546)

parent a921c1cf
...@@ -279,11 +279,11 @@ void main() { ...@@ -279,11 +279,11 @@ void main() {
// Regression test for https://github.com/flutter/flutter/issues/60613 // Regression test for https://github.com/flutter/flutter/issues/60613
testUsingContext('ResidentWebRunner calls appFailedToStart if initial compilation fails', () async { testUsingContext('ResidentWebRunner calls appFailedToStart if initial compilation fails', () async {
fakeVmServiceHost = FakeVmServiceHost(requests: kAttachExpectations.toList());
_setupMocks(); _setupMocks();
final ResidentRunner residentWebRunner = setUpResidentRunner(flutterDevice); final ResidentRunner residentWebRunner = setUpResidentRunner(flutterDevice);
fileSystem.file(globals.fs.path.join('lib', 'main.dart')) fileSystem.file(globals.fs.path.join('lib', 'main.dart'))
.createSync(recursive: true); .createSync(recursive: true);
fakeVmServiceHost = FakeVmServiceHost(requests: kAttachExpectations.toList());
webDevFS.report = UpdateFSReport(success: false, syncedBytes: 0); webDevFS.report = UpdateFSReport(success: false, syncedBytes: 0);
expect(await residentWebRunner.run(), 1); expect(await residentWebRunner.run(), 1);
......
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