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+
0.7.1-dev
Justin Clark-Casey (justincc) 2011-03-14 23:35:03 +00:00
parent 38c3be07b8
commit fdcf910e00
1 changed files with 3 additions and 2 deletions

View File

@ -565,10 +565,11 @@ namespace OpenSim.Data.Tests
sop.Acceleration = accel; sop.Acceleration = accel;
mydic.Add(tmp,sop); mydic.Add(tmp,sop);
sog.AddPart(sop); sog.AddPart(sop);
db.StoreObject(sog, region4);
} }
db.StoreObject(sog, region4);
SceneObjectGroup retsog = FindSOG("Test SOG", region4); SceneObjectGroup retsog = FindSOG("Test SOG", region4);
SceneObjectPart[] parts = retsog.Parts; SceneObjectPart[] parts = retsog.Parts;
for (int i = 0; i < 30; i++) for (int i = 0; i < 30; i++)