Skip to content

Commit c686e1e

Browse files
committed
Tag recently flaky tests
1 parent e2c7cfc commit c686e1e

File tree

4 files changed

+23
-15
lines changed

4 files changed

+23
-15
lines changed

src/test/java/com/rarchives/ripme/tst/ripper/rippers/CoomerPartyRipperTest.java

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,19 @@
33
import static org.junit.jupiter.api.Assertions.assertEquals;
44
import static org.junit.jupiter.api.Assertions.assertTrue;
55

6-
import com.rarchives.ripme.ripper.rippers.CoomerPartyRipper;
7-
8-
import org.junit.jupiter.api.Test;
9-
106
import java.io.IOException;
117
import java.net.URI;
128
import java.net.URISyntaxException;
139
import java.net.URL;
1410

11+
import org.junit.jupiter.api.Tag;
12+
import org.junit.jupiter.api.Test;
13+
14+
import com.rarchives.ripme.ripper.rippers.CoomerPartyRipper;
15+
1516
public class CoomerPartyRipperTest extends RippersTest {
1617
@Test
18+
@Tag("flaky")
1719
public void testRip() throws IOException, URISyntaxException {
1820
URL url = new URI("https://coomer.su/onlyfans/user/soogsx").toURL();
1921
CoomerPartyRipper ripper = new CoomerPartyRipper(url);
@@ -23,7 +25,7 @@ public void testRip() throws IOException, URISyntaxException {
2325
@Test
2426
public void testUrlParsing() throws IOException, URISyntaxException {
2527
String expectedGid = "onlyfans_soogsx";
26-
String[] urls = new String[]{
28+
String[] urls = new String[] {
2729
"https://coomer.su/onlyfans/user/soogsx", // normal url
2830
"http://coomer.su/onlyfans/user/soogsx", // http, not https
2931
"https://coomer.su/onlyfans/user/soogsx/", // with slash at the end
@@ -37,4 +39,4 @@ public void testUrlParsing() throws IOException, URISyntaxException {
3739
assertEquals(expectedGid, ripper.getGID(url));
3840
}
3941
}
40-
}
42+
}

src/test/java/com/rarchives/ripme/tst/ripper/rippers/FapwizRipperTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ public void testRipPostWithEmojiInShortUrl() throws IOException, URISyntaxExcept
7272
}
7373

7474
@Test
75+
@Tag("flaky")
7576
public void testRipPostWithEmojiInLongUrlAtEnd() throws IOException, URISyntaxException {
7677
URL url = new URI(
7778
"https://fapwiz.com/bimeat1998/just-imagine-youre-out-with-your-girl-and-your-buddies-and-then-she-makes-this-move-%f0%9f%98%8d/")

src/test/java/com/rarchives/ripme/tst/ripper/rippers/RulePornRipperTest.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,15 @@
55
import java.net.URISyntaxException;
66
import java.net.URL;
77

8-
import com.rarchives.ripme.ripper.rippers.RulePornRipper;
98
import org.junit.jupiter.api.Assertions;
9+
import org.junit.jupiter.api.Tag;
1010
import org.junit.jupiter.api.Test;
1111

12+
import com.rarchives.ripme.ripper.rippers.RulePornRipper;
13+
1214
public class RulePornRipperTest extends RippersTest {
1315
@Test
16+
@Tag("flaky")
1417
public void testRip() throws IOException, URISyntaxException {
1518
RulePornRipper ripper = new RulePornRipper(new URI("https://ruleporn.com/tosh/").toURL());
1619
testRipper(ripper);
@@ -22,4 +25,4 @@ public void testGetGID() throws IOException, URISyntaxException {
2225
RulePornRipper ripper = new RulePornRipper(url);
2326
Assertions.assertEquals("tosh", ripper.getGID(url));
2427
}
25-
}
28+
}

src/test/java/com/rarchives/ripme/tst/ripper/rippers/VscoRipperTest.java

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,26 @@
11
package com.rarchives.ripme.tst.ripper.rippers;
22

3-
import com.rarchives.ripme.ripper.rippers.VscoRipper;
4-
5-
import org.junit.jupiter.api.Assertions;
6-
import org.junit.jupiter.api.Test;
7-
83
import java.io.IOException;
94
import java.net.URI;
105
import java.net.URISyntaxException;
116
import java.net.URL;
127

13-
public class VscoRipperTest extends RippersTest {
8+
import org.junit.jupiter.api.Assertions;
9+
import org.junit.jupiter.api.Tag;
10+
import org.junit.jupiter.api.Test;
1411

12+
import com.rarchives.ripme.ripper.rippers.VscoRipper;
13+
14+
public class VscoRipperTest extends RippersTest {
1515
/**
1616
* Testing single image.
1717
*
1818
* @throws IOException
1919
*/
2020
@Test
2121
public void testSingleImageRip() throws IOException, URISyntaxException {
22-
VscoRipper ripper = new VscoRipper(new URI("https://vsco.co/jolly-roger/media/597ce449846079297b3f7cf3").toURL());
22+
VscoRipper ripper = new VscoRipper(
23+
new URI("https://vsco.co/jolly-roger/media/597ce449846079297b3f7cf3").toURL());
2324
testRipper(ripper);
2425
}
2526

@@ -30,6 +31,7 @@ public void testSingleImageRip() throws IOException, URISyntaxException {
3031
* @throws IOException
3132
*/
3233
@Test
34+
@Tag("flaky")
3335
public void testHyphenatedRip() throws IOException, URISyntaxException {
3436
VscoRipper ripper = new VscoRipper(new URI("https://vsco.co/jolly-roger/gallery").toURL());
3537
testRipper(ripper);

0 commit comments

Comments
 (0)