E
E
enchikiben2020-10-12 20:45:52
android studio
enchikiben, 2020-10-12 20:45:52

What about tests in android studio and flutter isolate?

Hello, could you help me with tests in android studio and flutter isolate?
More specifically, I have this test:

import 'package:flutter/foundation.dart';
import 'package:test/test.dart';

dynamic testFunGlobal(var s) {
  return 111;
}

Future<dynamic> testFun() async {
  return await compute(testFunGlobal, "11");
}

void main() {
  test('test', () async {
    var a = await testFun();
    print(a);
  });
}


and when you run it through ide prnt.sc/uxuejj, it hangs prnt.sc/uxueyh.

What's wrong? Can anyone check for themselves?

Thank you!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question