aboutsummaryrefslogtreecommitdiffstats
path: root/spec/core_storagemanager_spec.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-07-22 16:17:13 +0200
committerKim Alvefur <zash@zash.se>2023-07-22 16:17:13 +0200
commit9ee8b4e502f58dc830ef1228f81affa3e26387c7 (patch)
tree5875ed949fe8643ebd3fe43dc9a5c881f025c6d6 /spec/core_storagemanager_spec.lua
parent51daea2530acdb6017d49873900d61f46f7b9f2b (diff)
downloadprosody-9ee8b4e502f58dc830ef1228f81affa3e26387c7.tar.gz
prosody-9ee8b4e502f58dc830ef1228f81affa3e26387c7.zip
tests: Update storagemanager tests for prosody.* namespace change
Part of an attempt to make these tests work again. Previously they would just explode in a million luarocks stack overflows
Diffstat (limited to 'spec/core_storagemanager_spec.lua')
-rw-r--r--spec/core_storagemanager_spec.lua14
1 files changed, 6 insertions, 8 deletions
diff --git a/spec/core_storagemanager_spec.lua b/spec/core_storagemanager_spec.lua
index 5bad1534..de736822 100644
--- a/spec/core_storagemanager_spec.lua
+++ b/spec/core_storagemanager_spec.lua
@@ -1,13 +1,11 @@
local unpack = table.unpack;
-local server = require "net.server_select";
-package.loaded["net.server"] = server;
-local st = require "util.stanza";
+local st = require "prosody.util.stanza";
local function mock_prosody()
_G.prosody = {
core_post_stanza = function () end;
- events = require "util.events".new();
+ events = require "prosody.util.events".new();
hosts = {};
paths = {
data = "./data";
@@ -47,10 +45,10 @@ describe("storagemanager", function ()
insulate(tagged_name.." #storage backend", function ()
mock_prosody();
- local config = require "core.configmanager";
- local sm = require "core.storagemanager";
- local hm = require "core.hostmanager";
- local mm = require "core.modulemanager";
+ local config = require "prosody.core.configmanager";
+ local sm = require "prosody.core.storagemanager";
+ local hm = require "prosody.core.hostmanager";
+ local mm = require "prosody.core.modulemanager";
-- Simple check to ensure insulation is working correctly
assert.is_nil(config.get(test_host, "storage"));