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() {
@Override
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);
}
}.start();

View File

@@ -41,15 +41,6 @@ public class PubSubService {
private final FeedQueues queues;
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 topic = feed.getPushTopic();
String publicUrl = FeedUtils.removeTrailingSlash(config.getApplicationSettings().getPublicUrl());