Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
removes sleep in setDescription tests
  • Loading branch information
BradenBagby committed Mar 7, 2023
commit b4e54a15ddf9c4d39e4139562cf933d39bf02c41
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@ void main() {
await controller.prepareForVideoRecording();

await controller.startVideoRecording();
sleep(const Duration(milliseconds: 500));

// SDK < 26 will throw a platform error when trying to switch and keep the same camera
// we accept either outcome here, while the native integration tests check the outcome based on the current Android SDK
Expand All @@ -239,7 +238,6 @@ void main() {
failed = true;
}

sleep(const Duration(milliseconds: 500));

if (failed) {
// cameras did not switch
Expand All @@ -264,9 +262,7 @@ void main() {
);

await controller.initialize();
sleep(const Duration(milliseconds: 500));
await controller.setDescription(cameras[1]);
sleep(const Duration(milliseconds: 500));

expect(controller.description, cameras[1]);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,7 @@ void main() {
await controller.prepareForVideoRecording();

await controller.startVideoRecording();
sleep(const Duration(milliseconds: 500));
await controller.setDescription(cameras[1]);
sleep(const Duration(milliseconds: 500));

expect(controller.description, cameras[1]);
});
Expand All @@ -236,9 +234,7 @@ void main() {
);

await controller.initialize();
sleep(const Duration(milliseconds: 500));
await controller.setDescription(cameras[1]);
sleep(const Duration(milliseconds: 500));

expect(controller.description, cameras[1]);
});
Expand Down