[go: nahoru, domu]

Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

[camera] Attempt to fix flaky new Android test #6831

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,10 @@ void main() {

expect(controller.value.isStreamingImages, true);

sleep(const Duration(milliseconds: 500));
// Stopping recording before anything is recorded will throw, per
// https://developer.android.com/reference/android/media/MediaRecorder.html#stop()
// so delay long enough to ensure that some data is recorded.
await Future<void>.delayed(const Duration(seconds: 2));

await controller.stopVideoRecording();
await controller.dispose();
Expand Down