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

Commit f4ca732

Browse files
[video_player] Fix order-dependent tests (#5672)
1 parent 5273dab commit f4ca732

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

packages/video_player/video_player/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## NEXT
2+
3+
* Fixes order-dependent unit tests.
4+
15
## 2.4.2
26

37
* Minor fixes for new analysis options.

packages/video_player/video_player/test/video_player_test.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -958,6 +958,13 @@ void main() {
958958
});
959959

960960
group('VideoPlayerOptions', () {
961+
late FakeVideoPlayerPlatform fakeVideoPlayerPlatform;
962+
963+
setUp(() {
964+
fakeVideoPlayerPlatform = FakeVideoPlayerPlatform();
965+
VideoPlayerPlatform.instance = fakeVideoPlayerPlatform;
966+
});
967+
961968
test('setMixWithOthers', () async {
962969
final VideoPlayerController controller = VideoPlayerController.file(
963970
File(''),

0 commit comments

Comments
 (0)