mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
speed up tests
This commit is contained in:
@@ -208,6 +208,14 @@ public class FeedRefreshUpdater implements Managed {
|
|||||||
new Thread() {
|
new Thread() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
try {
|
||||||
|
// make sure the feed has been updated in the database so that the
|
||||||
|
// callback works
|
||||||
|
Thread.sleep(30000);
|
||||||
|
} catch (InterruptedException e1) {
|
||||||
|
// do nothing
|
||||||
|
}
|
||||||
|
|
||||||
pubSubService.subscribe(feed);
|
pubSubService.subscribe(feed);
|
||||||
}
|
}
|
||||||
}.start();
|
}.start();
|
||||||
|
|||||||
@@ -41,15 +41,6 @@ public class PubSubService {
|
|||||||
private final FeedQueues queues;
|
private final FeedQueues queues;
|
||||||
|
|
||||||
public void subscribe(Feed feed) {
|
public void subscribe(Feed feed) {
|
||||||
|
|
||||||
try {
|
|
||||||
// make sure the feed has been updated in the database so that the
|
|
||||||
// callback works
|
|
||||||
Thread.sleep(30000);
|
|
||||||
} catch (InterruptedException e1) {
|
|
||||||
// do nothing
|
|
||||||
}
|
|
||||||
|
|
||||||
String hub = feed.getPushHub();
|
String hub = feed.getPushHub();
|
||||||
String topic = feed.getPushTopic();
|
String topic = feed.getPushTopic();
|
||||||
String publicUrl = FeedUtils.removeTrailingSlash(config.getApplicationSettings().getPublicUrl());
|
String publicUrl = FeedUtils.removeTrailingSlash(config.getApplicationSettings().getPublicUrl());
|
||||||
|
|||||||
Reference in New Issue
Block a user