Skip to content

Commit 1689037

Browse files
committed
Fix getLength() tests now that the value is rounded (not floor-ed)
In yt stream extractor
1 parent 1ed89aa commit 1689037

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/stream/YoutubeStreamExtractorAgeRestrictedTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public void testGetUploaderName() throws ParsingException {
7575

7676
@Test
7777
public void testGetLength() throws ParsingException {
78-
assertEquals(1789, extractor.getLength());
78+
assertEquals(1790, extractor.getLength());
7979
}
8080

8181
@Test

extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/stream/YoutubeStreamExtractorDefaultTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public void testGetUploaderName() throws ParsingException {
101101

102102
@Test
103103
public void testGetLength() throws ParsingException {
104-
assertEquals(366, extractor.getLength());
104+
assertEquals(367, extractor.getLength());
105105
}
106106

107107
@Test

0 commit comments

Comments
 (0)