MeasureEvent tests added timeout

This commit is contained in:
Vadim 2023-06-08 12:11:37 +02:00
parent c7d30510f0
commit e4a6f0c1d4

View file

@ -59,7 +59,7 @@ void main() {
bloc.close();
});
group('MeteringBloc test:', () {
group('Initial state test', () {
test('Initial state', () {
expect(
bloc.state,
@ -73,7 +73,9 @@ void main() {
});
});
group('`MeasureEvent` tests', () {
group(
'`MeasureEvent` tests',
() {
blocTest<MeteringBloc, MeteringState>(
'`MeasureEvent` -> success',
build: () => bloc,
@ -161,5 +163,7 @@ void main() {
.having((state) => state.ev, 'ev', 4),
],
);
});
},
timeout: const Timeout(Duration(seconds: 4)),
);
}