Annotate entrypoints in the "isolate spawner" files generated by flutter test --experimental-faster-testing
(#160694)
This fixes the test timeouts
(https://ci.chromium.org/ui/p/flutter/builders/prod/Mac%20tool_integration_tests_2_5/1951/overview)
introduced by the most recent Dart SDK roll
(895f0e291a
).
This commit is contained in:
parent
fe4c672e79
commit
5036e58c23
@ -394,6 +394,7 @@ void createChannelAndConnect(String path, String name, Function testMain) {
|
|||||||
channel.pipe(RemoteListener.start(() => testMain));
|
channel.pipe(RemoteListener.start(() => testMain));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@pragma('vm:entry-point')
|
||||||
void testMain() {
|
void testMain() {
|
||||||
final String route = PlatformDispatcher.instance.defaultRouteName;
|
final String route = PlatformDispatcher.instance.defaultRouteName;
|
||||||
switch (route) {
|
switch (route) {
|
||||||
@ -418,6 +419,7 @@ void testMain() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@pragma('vm:entry-point')
|
||||||
void main([dynamic sendPort]) {
|
void main([dynamic sendPort]) {
|
||||||
if (sendPort is SendPort) {
|
if (sendPort is SendPort) {
|
||||||
final ReceivePort receivePort = ReceivePort();
|
final ReceivePort receivePort = ReceivePort();
|
||||||
@ -495,6 +497,7 @@ Future<void> spawn({
|
|||||||
commandPort.send(<Object>['spawn', port, entrypoint, route]);
|
commandPort.send(<Object>['spawn', port, entrypoint, route]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@pragma('vm:entry-point')
|
||||||
void main() async {
|
void main() async {
|
||||||
final String route = PlatformDispatcher.instance.defaultRouteName;
|
final String route = PlatformDispatcher.instance.defaultRouteName;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user