Skip to content
Merged
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
Add back missing pump and settle
  • Loading branch information
camsim99 committed Oct 23, 2024
commit 280fef63a80042d6596e5f25a0d549e07ff88c80
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,13 @@ void main() {
await tester.pumpAndSettle(_playDuration);

await player.pause(textureId);
await tester.pumpAndSettle(_playDuration);
final Duration pausedDuration = await player.getPosition(textureId);
await tester.pumpAndSettle(_playDuration);

// TODO(camsim99): Implement reliable way to tell when pausing completes
// to check for exact pausedDuration.
expect((await player.getPosition(textureId)).inMilliseconds, inInclusiveRange(pausedDuration.inMilliseconds, pausedDuration.inMilliseconds + 500));
expect(await player.getPosition(textureId), pausedDuration);
await player.dispose(textureId);
});

Expand Down