aboutsummaryrefslogtreecommitdiff
path: root/internal/admin/live_owner_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/admin/live_owner_test.go')
-rw-r--r--internal/admin/live_owner_test.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/internal/admin/live_owner_test.go b/internal/admin/live_owner_test.go
index e975681..ae53606 100644
--- a/internal/admin/live_owner_test.go
+++ b/internal/admin/live_owner_test.go
@@ -47,8 +47,12 @@ func TestAdminEditorAtomicWithGameplay(t *testing.T) {
}
h.g.MigrateRoomIDsOnOwner(ids)
}
- s, err := NewServer(config.Default(), false, h.g.AccountStore, h.g.World, h.g.ItemStore, h.g.ObjectStore, h.g.MobStore, h.dir,
- h.g.CourseStore.ReloadAll, migrate, h.g.EvictCasinoRoom, h.g.RebuildCraftIndex, filepath.Join(h.dir, "config.yaml"), h.g.RunAdminOnOwner)
+ s, err := NewServer(ServerDeps{
+ Config: config.Default(), Accounts: h.g.AccountStore, World: h.g.World,
+ Items: h.g.ItemStore, Objects: h.g.ObjectStore, Mobs: h.g.MobStore, DataDir: h.dir,
+ ReloadCourses: h.g.CourseStore.ReloadAll, RewriteRoomIDs: migrate, EvictRoom: h.g.EvictCasinoRoom,
+ RebuildCraftIndex: h.g.RebuildCraftIndex, ConfigPath: filepath.Join(h.dir, "config.yaml"), RunOnOwner: h.g.RunAdminOnOwner,
+ })
if err != nil {
t.Fatal(err)
}