Isolates spawned using "compute" don't execute properly while executed in an integration test which in turn results in incorrect app behavior.
How to reproduce:
- add:
import 'package:flutter/foundation.dart';
- add function:
String _test(String s) {
return s;
}
- modify _incrementCounter function:
void _incrementCounter() async {
final s = await compute(_test, 'hello');
print(s);
setState(() {
_counter++;
});
}
The app works properly when executing flutter run, but the integration test fails (flutter drive --target=test_driver/app.dart)
Isolates spawned using "compute" don't execute properly while executed in an integration test which in turn results in incorrect app behavior.
How to reproduce:
The app works properly when executing flutter run, but the integration test fails (flutter drive --target=test_driver/app.dart)