Enable strict-inference (#135043)
Avoids that dynamic accidentally sneaks in, see https://dart.dev/tools/analysis#enabling-additional-type-checks
This commit is contained in:
committed by
GitHub
parent
96a4ae9dc5
commit
b0a90aee17
@@ -170,7 +170,7 @@ void main() {
|
||||
await expectLater(
|
||||
() async {
|
||||
final Future<void> rollFuture = autoroller.roll();
|
||||
await controller.stream.drain();
|
||||
await controller.stream.drain<Object?>();
|
||||
await rollFuture;
|
||||
},
|
||||
throwsA(isA<Exception>().having(
|
||||
@@ -214,7 +214,7 @@ void main() {
|
||||
], stdout: '[{"number": 123}]'),
|
||||
]);
|
||||
final Future<void> rollFuture = autoroller.roll();
|
||||
await controller.stream.drain();
|
||||
await controller.stream.drain<Object?>();
|
||||
await rollFuture;
|
||||
expect(processManager, hasNoRemainingExpectations);
|
||||
expect(stdio.stdout, contains('flutter-pub-roller-bot already has open tool PRs'));
|
||||
@@ -312,7 +312,7 @@ void main() {
|
||||
]),
|
||||
]);
|
||||
final Future<void> rollFuture = autoroller.roll();
|
||||
await controller.stream.drain();
|
||||
await controller.stream.drain<Object?>();
|
||||
await rollFuture;
|
||||
expect(processManager, hasNoRemainingExpectations);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user