Procházet zdrojové kódy

fix ProxyTest after adjusting HN blocker

tags/v0.3.0
Jonathan Cobb před 4 roky
rodič
revize
7fe2e9d29f
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. +1
    -1
      bubble-server/src/test/java/bubble/test/ProxyTest.java

+ 1
- 1
bubble-server/src/test/java/bubble/test/ProxyTest.java Zobrazit soubor

@@ -31,7 +31,7 @@ public class ProxyTest extends ActivatedBubbleModelTestBase {
final RestResponse response = (RestResponse) getApiRunner().getContext().get("hn_response");

// find block link for user electricEmu
final Pattern pattern = Pattern.compile("=electricEmu.+?</span><a\\s*href=\"(.+?)\"");
final Pattern pattern = Pattern.compile("=electricEmu.+?</span>\\s*<a\\s*href=\"(.+?)\"");
final Matcher matcher = pattern.matcher(response.json);
assertTrue("expected match for user to block", matcher.find());
final String blockUrl = matcher.group(1);


Načítá se…
Zrušit
Uložit