Skip to content

Commit

Permalink
[WIP] : add pumps
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustl22 committed Jul 19, 2023
1 parent b8c4fd8 commit fd65737
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions packages/audioplayers/example/integration_test/lib_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -97,22 +97,26 @@ void main() {
}
print('A5-$i');
await players[i].stop();
print('A6-$i');
await tester.pumpLinux();
}
print('A6');
await tester.pumpLinux();
print('A7');
await Future.wait(players.map((p) => p.dispose()));
await tester.pumpLinux();
print('A8');
await Future.wait(players.map((p) => p.dispose()));
print('A9');
await tester.pumpLinux();
print('A10');
},
// FIXME: Causes media error on Android (see #1333, #1353)
// Unexpected platform error: MediaPlayer error with
// what:MEDIA_ERROR_UNKNOWN {what:1} extra:MEDIA_ERROR_SYSTEM
skip: isAndroid,
);
print('B');

testWidgets('play multiple sources consecutively',
(WidgetTester tester) async {
print('B');
final player = AudioPlayer();

for (var i = 0; i < audioTestDataList.length; i++) {
Expand Down

0 comments on commit fd65737

Please sign in to comment.