From f1f4b16bc8e06d99b7af807eee12aa2676307e4a Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Wed, 26 Nov 2008 12:34:32 +0000 Subject: [PATCH] Change the max value of the bytes in tests to 127. MySQL bytes are signed by default --- OpenSim/Data/Tests/BasicRegionTest.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/OpenSim/Data/Tests/BasicRegionTest.cs b/OpenSim/Data/Tests/BasicRegionTest.cs index fac04660be..fc86707442 100644 --- a/OpenSim/Data/Tests/BasicRegionTest.cs +++ b/OpenSim/Data/Tests/BasicRegionTest.cs @@ -241,11 +241,11 @@ namespace OpenSim.Data.Tests string sitname = "SitName"; string touchname = "TouchName"; int linknum = random.Next(); - byte clickaction = (byte) random.Next(255); + byte clickaction = (byte) random.Next(127); PrimitiveBaseShape pbshap = new PrimitiveBaseShape(); pbshap = PrimitiveBaseShape.Default; Vector3 scale = new Vector3(random.Next(),random.Next(),random.Next()); - byte updatef = (byte) random.Next(255); + byte updatef = (byte) random.Next(127); SceneObjectPart sop = new SceneObjectPart(); sop.RegionHandle = regionh; @@ -402,11 +402,11 @@ namespace OpenSim.Data.Tests string sitname = RandomName(); string touchname = RandomName(); int linknum = random.Next(); - byte clickaction = (byte) random.Next(255); + byte clickaction = (byte) random.Next(127); PrimitiveBaseShape pbshap = new PrimitiveBaseShape(); pbshap = PrimitiveBaseShape.Default; Vector3 scale = new Vector3(random.Next(),random.Next(),random.Next()); - byte updatef = (byte) random.Next(255); + byte updatef = (byte) random.Next(127); // Updates the region with new values SceneObjectGroup sog2 = FindSOG("Adam West", region3); @@ -611,7 +611,7 @@ namespace OpenSim.Data.Tests i.GroupOwned = groupown; int saleprice = random.Next(); i.SalePrice = saleprice; - byte saletype = (byte) random.Next(255); + byte saletype = (byte) random.Next(127); i.SaleType = saletype; uint flags = (uint) random.Next(); i.Flags = flags;