mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2025-02-22 12:30:40 +00:00
MeasureEvent
tests added timeout
This commit is contained in:
parent
c7d30510f0
commit
e4a6f0c1d4
1 changed files with 92 additions and 88 deletions
|
@ -59,7 +59,7 @@ void main() {
|
||||||
bloc.close();
|
bloc.close();
|
||||||
});
|
});
|
||||||
|
|
||||||
group('MeteringBloc test:', () {
|
group('Initial state test', () {
|
||||||
test('Initial state', () {
|
test('Initial state', () {
|
||||||
expect(
|
expect(
|
||||||
bloc.state,
|
bloc.state,
|
||||||
|
@ -73,7 +73,9 @@ void main() {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
group('`MeasureEvent` tests', () {
|
group(
|
||||||
|
'`MeasureEvent` tests',
|
||||||
|
() {
|
||||||
blocTest<MeteringBloc, MeteringState>(
|
blocTest<MeteringBloc, MeteringState>(
|
||||||
'`MeasureEvent` -> success',
|
'`MeasureEvent` -> success',
|
||||||
build: () => bloc,
|
build: () => bloc,
|
||||||
|
@ -161,5 +163,7 @@ void main() {
|
||||||
.having((state) => state.ev, 'ev', 4),
|
.having((state) => state.ev, 'ev', 4),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
});
|
},
|
||||||
|
timeout: const Timeout(Duration(seconds: 4)),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue