mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-05 21:32:12 +02:00
Merge pull request #994 from daleglass-overte/fix-resource-request-test
Add missing dependencymanager call, fixes test crash
This commit is contained in:
commit
524863e9da
1 changed files with 3 additions and 0 deletions
|
@ -17,6 +17,7 @@
|
|||
#include <NodeList.h>
|
||||
#include <NetworkAccessManager.h>
|
||||
#include <DependencyManager.h>
|
||||
#include <ResourceRequestObserver.h>
|
||||
#include <StatTracker.h>
|
||||
|
||||
QTEST_MAIN(ResourceTests)
|
||||
|
@ -29,6 +30,8 @@ void ResourceTests::initTestCase() {
|
|||
DependencyManager::set<NodeList>(NodeType::Agent, INVALID_PORT);
|
||||
DependencyManager::set<ResourceCacheSharedItems>();
|
||||
DependencyManager::set<ResourceManager>();
|
||||
DependencyManager::set<ResourceRequestObserver>();
|
||||
|
||||
const qint64 MAXIMUM_CACHE_SIZE = 1024 * 1024 * 1024; // 1GB
|
||||
|
||||
// set up the file cache
|
||||
|
|
Loading…
Reference in a new issue