If a test expects an error they can use runUntilError() PiperOrigin-RevId: 382765060
The core of the ExoPlayer library.