speed up tests

This commit is contained in:
Athou
2021-01-30 21:43:21 +01:00
parent e592d26f8b
commit 000a99c53e
2 changed files with 8 additions and 9 deletions

View File

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

View File

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