Browse Source

fix ProxyTest after adjusting HN blocker

tags/v0.3.0
Jonathan Cobb 4 years ago
parent
commit
7fe2e9d29f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      bubble-server/src/test/java/bubble/test/ProxyTest.java

+ 1
- 1
bubble-server/src/test/java/bubble/test/ProxyTest.java View File

@@ -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);


Loading…
Cancel
Save