Skip to content
This repository has been archived by the owner on Oct 28, 2023. It is now read-only.

Commit

Permalink
Fix open connection in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
HaarigerHarald committed Sep 8, 2018
1 parent 10ef9d2 commit f965406
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -23,7 +23,6 @@ public void testUsualVideo() throws Throwable {
extractorTestDashManifest("http://youtube.com/watch?v=YE7VzlLtp-4");
}


public void testEncipheredVideo() throws Throwable {
VideoMeta expMeta = new VideoMeta("e8X3ACToii0", "Rise Against - Savior", "RiseAgainstVEVO",
"UChMKB2AHNpeuWhalpRYhUaw", 243, 0, false);
Expand Down Expand Up @@ -87,8 +86,8 @@ public void onExtractionComplete(SparseArray<YtFile> ytFiles, VideoMeta videoMet

HttpURLConnection con = (HttpURLConnection) url.openConnection();
int code = con.getResponseCode();
assertEquals(code, 200);
con.disconnect();
assertEquals(200, code);
}


Expand Down Expand Up @@ -132,8 +131,8 @@ public void onExtractionComplete(SparseArray<YtFile> ytFiles, VideoMeta videoMe

HttpURLConnection con = (HttpURLConnection) url.openConnection();
int code = con.getResponseCode();
assertEquals(code, 200);
con.disconnect();
assertEquals(200, code);
}

}

0 comments on commit f965406

Please sign in to comment.