Skip to content

Commit 4ac8f91

Browse files
committed
Update PlayerHttpErrorRecoveryTest.java
1 parent 0cad55f commit 4ac8f91

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

app/src/test/java/org/schabi/newpipe/player/PlayerHttpErrorRecoveryTest.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
import static org.junit.Assert.assertFalse;
55
import static org.junit.Assert.assertTrue;
66

7-
import android.net.Uri;
8-
9-
import com.google.android.exoplayer2.upstream.DataSpec;
107
import com.google.android.exoplayer2.upstream.HttpDataSource;
118

129
import org.junit.Test;
@@ -57,7 +54,6 @@ public void acceptsOnlyYouTubeService() {
5754
private static HttpDataSource.InvalidResponseCodeException invalidResponseCodeException(
5855
final int responseCode) {
5956
return new HttpDataSource.InvalidResponseCodeException(responseCode, "HTTP error",
60-
new IOException("HTTP error"), Collections.emptyMap(),
61-
new DataSpec(Uri.parse("https://example.com/videoplayback")), new byte[0]);
57+
new IOException("HTTP error"), Collections.emptyMap(), null, new byte[0]);
6258
}
6359
}

0 commit comments

Comments
 (0)