mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2025-02-22 04:20:41 +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();
|
||||
});
|
||||
|
||||
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)),
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue