mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 20:05:33 +08:00
* Simplify test code by always setting up mock 'in memory' user and inventory data plugins for every TestCommunicationsManager
* imo the gain in simplcity of test code outweighs the very small cost of setting up some stuff that some tests will never use
This commit is contained in:
@@ -313,9 +313,6 @@ namespace OpenSim.Region.Environment.Scenes.Tests
|
||||
TestScene scene = SceneTestUtils.SetupScene();
|
||||
SceneObjectPart part = SceneTestUtils.AddSceneObject(scene, myObjectName);
|
||||
|
||||
((LocalUserServices)scene.CommsManager.UserService).AddPlugin(new TestUserDataPlugin());
|
||||
((LocalInventoryService)scene.CommsManager.InventoryService).AddPlugin(new TestInventoryDataPlugin());
|
||||
|
||||
Assert.That(
|
||||
scene.CommsManager.UserAdminService.AddUser(
|
||||
"Bob", "Hoskins", "test", "test@test.com", 1000, 1000, agentId),
|
||||
|
||||
Reference in New Issue
Block a user