* Fix test failure by setting up MainConsole.Instance in SceneSetupHelpers.SetupScene()
parent
3e247a8eaa
commit
da82fe0409
|
@ -33,6 +33,7 @@ using OpenMetaverse;
|
|||
using OpenSim.Framework;
|
||||
using OpenSim.Framework.Communications;
|
||||
using OpenSim.Framework.Communications.Cache;
|
||||
using OpenSim.Framework.Console;
|
||||
using OpenSim.Framework.Servers;
|
||||
using OpenSim.Framework.Servers.HttpServer;
|
||||
using OpenSim.Region.Physics.Manager;
|
||||
|
@ -106,6 +107,9 @@ namespace OpenSim.Tests.Common.Setup
|
|||
{
|
||||
Console.WriteLine("Setting up test scene {0}", name);
|
||||
|
||||
// We must set up a console otherwise setup of some modules may fail
|
||||
MainConsole.Instance = new LocalConsole("TEST PROMPT");
|
||||
|
||||
MainServer.Instance = new BaseHttpServer(980);
|
||||
RegionInfo regInfo = new RegionInfo(x, y, new IPEndPoint(IPAddress.Loopback, 9000), "127.0.0.1");
|
||||
regInfo.RegionName = name;
|
||||
|
|
|
@ -3295,6 +3295,7 @@
|
|||
<Reference name="OpenMetaverseTypes.dll"/>
|
||||
<Reference name="OpenSim.Framework"/>
|
||||
<Reference name="OpenSim.Framework.Communications"/>
|
||||
<Reference name="OpenSim.Framework.Console"/>
|
||||
<Reference name="OpenSim.Framework.Servers"/>
|
||||
<Reference name="OpenSim.Framework.Servers.HttpServer"/>
|
||||
<Reference name="OpenSim.Data"/>
|
||||
|
|
Loading…
Reference in New Issue