mirror of
https://github.com/samsonjs/media.git
synced 2026-03-25 09:25:53 +00:00
Release MediaSession and ExoPlayer in MediaControllerStubTest
Due to poor isolation between the session tests, in particular the
static state in `MediaSession.SESSION_ID_TO_SESSION_MAP`, an unreleased
session at the end of one test can cause subsequent tests to fail with
obscure errors like `Session ID must be unique`.
#minor-release
PiperOrigin-RevId: 600737697
(cherry picked from commit ca61ac6ca3)
This commit is contained in:
parent
21e6c1c43e
commit
dd9f61005e
1 changed files with 3 additions and 0 deletions
|
|
@ -139,5 +139,8 @@ public class MediaControllerStubTest {
|
|||
/* query= */ "",
|
||||
/* itemCount= */ 1,
|
||||
/* libraryParams= */ getThrowingBundle());
|
||||
|
||||
session.release();
|
||||
player.release();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue