mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
refactor: Make AttachmentModulesTests.TestSameSimulatorNeighbouringRegionsTeleportV2 use already available TestClient handle rather than retrieving it via the ScenePresence
This commit is contained in:
@@ -965,7 +965,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments.Tests
|
||||
// Both these operations will occur on different threads and will wait for each other.
|
||||
// We have to do this via ThreadPool directly since FireAndForget has been switched to sync for the V1
|
||||
// test protocol, where we are trying to avoid unpredictable async operations in regression tests.
|
||||
((TestClient)beforeTeleportSp.ControllingClient).OnTestClientSendRegionTeleport
|
||||
tc.OnTestClientSendRegionTeleport
|
||||
+= (regionHandle, simAccess, regionExternalEndPoint, locationID, flags, capsURL)
|
||||
=> ThreadPool.UnsafeQueueUserWorkItem(o => destinationTestClients[0].CompleteMovement(), null);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user