Skip to content

Commit

Permalink
Merge branch 'isolate-playback-state-test' of https://github.com/nt4f…
Browse files Browse the repository at this point in the history
…04uNd/audio_service into nt4f04uNd-isolate-playback-state-test
  • Loading branch information
ryanheise committed Jun 26, 2022
2 parents 9787efa + c112fa1 commit fc644b0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion audio_service/test/isolates_test.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'dart:isolate';

import 'package:audio_service/audio_service.dart';
import 'package:fake_async/fake_async.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:rxdart/rxdart.dart';

Expand Down Expand Up @@ -76,7 +77,11 @@ void main() {
differentIsolate ? ' (different isolate)' : ' (same isolate)';

test('init $isolateLabel', () async {
//expect(await proxy.playbackState.first, PlaybackState());
final playbackState = await proxy.playbackState.first;
fakeAsync((async) {
// ignore the updateTime
expect(playbackState.copyWith(), PlaybackState());
});
expect(await proxy.queue.first, const <MediaItem>[]);
expect(await proxy.queueTitle.first, '');
expect(await proxy.mediaItem.first, null);
Expand Down

0 comments on commit fc644b0

Please sign in to comment.