diff options
author | Diva Canto | 2010-08-20 11:09:02 -0700 |
---|---|---|
committer | Diva Canto | 2010-08-24 17:19:04 -0700 |
commit | c9b685dc1513092a66d81da8bb90b9c5ed245bb8 (patch) | |
tree | 8ff37963beacc4f30cee6a52f1660b6988ff84af /OpenSim/Region/Framework/Scenes/Tests/ScenePresenceTests.cs | |
parent | OpenSim.ini.example FreeSwitch section improvements, move of XML-RPC section ... (diff) | |
download | opensim-SC_OLD-c9b685dc1513092a66d81da8bb90b9c5ed245bb8.zip opensim-SC_OLD-c9b685dc1513092a66d81da8bb90b9c5ed245bb8.tar.gz opensim-SC_OLD-c9b685dc1513092a66d81da8bb90b9c5ed245bb8.tar.bz2 opensim-SC_OLD-c9b685dc1513092a66d81da8bb90b9c5ed245bb8.tar.xz |
Unit test breakage fix.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Tests/ScenePresenceTests.cs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceTests.cs b/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceTests.cs index 501207e..e39a362 100644 --- a/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceTests.cs +++ b/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceTests.cs | |||
@@ -104,8 +104,8 @@ namespace OpenSim.Region.Framework.Scenes.Tests | |||
104 | agent.AgentID = agent1; | 104 | agent.AgentID = agent1; |
105 | agent.firstname = firstName; | 105 | agent.firstname = firstName; |
106 | agent.lastname = "testlastname"; | 106 | agent.lastname = "testlastname"; |
107 | agent.SessionID = UUID.Zero; | 107 | agent.SessionID = UUID.Random(); |
108 | agent.SecureSessionID = UUID.Zero; | 108 | agent.SecureSessionID = UUID.Random(); |
109 | agent.circuitcode = 123; | 109 | agent.circuitcode = 123; |
110 | agent.BaseFolder = UUID.Zero; | 110 | agent.BaseFolder = UUID.Zero; |
111 | agent.InventoryFolder = UUID.Zero; | 111 | agent.InventoryFolder = UUID.Zero; |
@@ -114,6 +114,11 @@ namespace OpenSim.Region.Framework.Scenes.Tests | |||
114 | agent.ChildrenCapSeeds = new Dictionary<ulong, string>(); | 114 | agent.ChildrenCapSeeds = new Dictionary<ulong, string>(); |
115 | agent.child = true; | 115 | agent.child = true; |
116 | 116 | ||
117 | if (scene.PresenceService == null) | ||
118 | Console.WriteLine("Presence Service is null"); | ||
119 | |||
120 | scene.PresenceService.LoginAgent(agent.AgentID.ToString(), agent.SessionID, agent.SecureSessionID); | ||
121 | |||
117 | string reason; | 122 | string reason; |
118 | scene.NewUserConnection(agent, (uint)TeleportFlags.ViaLogin, out reason); | 123 | scene.NewUserConnection(agent, (uint)TeleportFlags.ViaLogin, out reason); |
119 | testclient = new TestClient(agent, scene); | 124 | testclient = new TestClient(agent, scene); |