diff options
author | Justin Clark-Casey (justincc) | 2011-03-14 23:35:03 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-03-14 23:35:03 +0000 |
commit | fdcf910e00824ceb3db5166a2b3173c882ee059f (patch) | |
tree | 83ae0c2f784ed6cd0cc5c4a1efeb1a2029a40bfc | |
parent | when retrieving a sog in database tests, don't bother adding the scene since ... (diff) | |
download | opensim-SC-fdcf910e00824ceb3db5166a2b3173c882ee059f.zip opensim-SC-fdcf910e00824ceb3db5166a2b3173c882ee059f.tar.gz opensim-SC-fdcf910e00824ceb3db5166a2b3173c882ee059f.tar.bz2 opensim-SC-fdcf910e00824ceb3db5166a2b3173c882ee059f.tar.xz |
Fix a bug in T015_LargeSceneObjects() where the large scene object was stored 31 times (1 time for each added part) instead of once at the end, even though only the largest 31 prim scene object was retrieved and tested.
This considerably speeds up the test, when on sqlite it now only takes 2 seconds rather than 30+
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/Tests/RegionTests.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenSim/Data/Tests/RegionTests.cs b/OpenSim/Data/Tests/RegionTests.cs index e049826..44cf1ab 100644 --- a/OpenSim/Data/Tests/RegionTests.cs +++ b/OpenSim/Data/Tests/RegionTests.cs | |||
@@ -565,10 +565,11 @@ namespace OpenSim.Data.Tests | |||
565 | sop.Acceleration = accel; | 565 | sop.Acceleration = accel; |
566 | 566 | ||
567 | mydic.Add(tmp,sop); | 567 | mydic.Add(tmp,sop); |
568 | sog.AddPart(sop); | 568 | sog.AddPart(sop); |
569 | db.StoreObject(sog, region4); | ||
570 | } | 569 | } |
571 | 570 | ||
571 | db.StoreObject(sog, region4); | ||
572 | |||
572 | SceneObjectGroup retsog = FindSOG("Test SOG", region4); | 573 | SceneObjectGroup retsog = FindSOG("Test SOG", region4); |
573 | SceneObjectPart[] parts = retsog.Parts; | 574 | SceneObjectPart[] parts = retsog.Parts; |
574 | for (int i = 0; i < 30; i++) | 575 | for (int i = 0; i < 30; i++) |