Merge pull request #994 from daleglass-overte/fix-resource-request-test

Add missing dependencymanager call, fixes test crash
This commit is contained in:
Dale Glass 2024-06-03 23:27:21 +02:00 committed by GitHub
commit 524863e9da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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