Looks like expect(largeUint8List, "anyting?") takes way too long.
Full repro:
import 'dart:typed_data';
import 'package:test/test.dart';
void main() {
test('repro', () {
final stopwatch = Stopwatch()..start();
final list = Uint8List(100*1024*1024);
print('List creation took ${stopwatch.elapsed}');
stopwatch.reset();
try {
expect(list, null);
} finally {
print('expect took ${stopwatch.elapsed}');
}
});
}
For me the test above prints:
List creation took 0:00:00.000330
expect took 0:01:22.457127