diff options
| author | historia <[not public]> | 2026-09-18 21:44:49 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-09-18 21:44:49 -0400 |
| commit | e7848ea79a9a57fdf391d30c48ce649f3d2f6180 (patch) | |
| tree | a2972facd5bbe88006f40ff96a1eeadd570ac15b /internal/admin/live_owner_test.go | |
| parent | a8a67482bbff8297a96adff65d2fd7029ed998cc (diff) | |
| download | thehouseoficarus-e7848ea79a9a57fdf391d30c48ce649f3d2f6180.tar.gz | |
refactor: dedup admin entity handlers and server construction
Diffstat (limited to 'internal/admin/live_owner_test.go')
| -rw-r--r-- | internal/admin/live_owner_test.go | 8 |
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) } |
