aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/Tests
diff options
context:
space:
mode:
authorMelanie Thielker2008-11-26 12:34:32 +0000
committerMelanie Thielker2008-11-26 12:34:32 +0000
commitf1f4b16bc8e06d99b7af807eee12aa2676307e4a (patch)
treef4e408385196a27db83004872b7711aab17a4a98 /OpenSim/Data/Tests
parentYay for unit tests. Increased the type width of the prims and primshapes (diff)
downloadopensim-SC_OLD-f1f4b16bc8e06d99b7af807eee12aa2676307e4a.zip
opensim-SC_OLD-f1f4b16bc8e06d99b7af807eee12aa2676307e4a.tar.gz
opensim-SC_OLD-f1f4b16bc8e06d99b7af807eee12aa2676307e4a.tar.bz2
opensim-SC_OLD-f1f4b16bc8e06d99b7af807eee12aa2676307e4a.tar.xz
Change the max value of the bytes in tests to 127. MySQL bytes are signed
by default
Diffstat (limited to 'OpenSim/Data/Tests')
-rw-r--r--OpenSim/Data/Tests/BasicRegionTest.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Data/Tests/BasicRegionTest.cs b/OpenSim/Data/Tests/BasicRegionTest.cs
index fac0466..fc86707 100644
--- a/OpenSim/Data/Tests/BasicRegionTest.cs
+++ b/OpenSim/Data/Tests/BasicRegionTest.cs
@@ -241,11 +241,11 @@ namespace OpenSim.Data.Tests
241 string sitname = "SitName"; 241 string sitname = "SitName";
242 string touchname = "TouchName"; 242 string touchname = "TouchName";
243 int linknum = random.Next(); 243 int linknum = random.Next();
244 byte clickaction = (byte) random.Next(255); 244 byte clickaction = (byte) random.Next(127);
245 PrimitiveBaseShape pbshap = new PrimitiveBaseShape(); 245 PrimitiveBaseShape pbshap = new PrimitiveBaseShape();
246 pbshap = PrimitiveBaseShape.Default; 246 pbshap = PrimitiveBaseShape.Default;
247 Vector3 scale = new Vector3(random.Next(),random.Next(),random.Next()); 247 Vector3 scale = new Vector3(random.Next(),random.Next(),random.Next());
248 byte updatef = (byte) random.Next(255); 248 byte updatef = (byte) random.Next(127);
249 249
250 SceneObjectPart sop = new SceneObjectPart(); 250 SceneObjectPart sop = new SceneObjectPart();
251 sop.RegionHandle = regionh; 251 sop.RegionHandle = regionh;
@@ -402,11 +402,11 @@ namespace OpenSim.Data.Tests
402 string sitname = RandomName(); 402 string sitname = RandomName();
403 string touchname = RandomName(); 403 string touchname = RandomName();
404 int linknum = random.Next(); 404 int linknum = random.Next();
405 byte clickaction = (byte) random.Next(255); 405 byte clickaction = (byte) random.Next(127);
406 PrimitiveBaseShape pbshap = new PrimitiveBaseShape(); 406 PrimitiveBaseShape pbshap = new PrimitiveBaseShape();
407 pbshap = PrimitiveBaseShape.Default; 407 pbshap = PrimitiveBaseShape.Default;
408 Vector3 scale = new Vector3(random.Next(),random.Next(),random.Next()); 408 Vector3 scale = new Vector3(random.Next(),random.Next(),random.Next());
409 byte updatef = (byte) random.Next(255); 409 byte updatef = (byte) random.Next(127);
410 410
411 // Updates the region with new values 411 // Updates the region with new values
412 SceneObjectGroup sog2 = FindSOG("Adam West", region3); 412 SceneObjectGroup sog2 = FindSOG("Adam West", region3);
@@ -611,7 +611,7 @@ namespace OpenSim.Data.Tests
611 i.GroupOwned = groupown; 611 i.GroupOwned = groupown;
612 int saleprice = random.Next(); 612 int saleprice = random.Next();
613 i.SalePrice = saleprice; 613 i.SalePrice = saleprice;
614 byte saletype = (byte) random.Next(255); 614 byte saletype = (byte) random.Next(127);
615 i.SaleType = saletype; 615 i.SaleType = saletype;
616 uint flags = (uint) random.Next(); 616 uint flags = (uint) random.Next();
617 i.Flags = flags; 617 i.Flags = flags;