mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 02:36:00 +08:00
add a test for updating region settings and fix a bug in uuid
translation in sqlite uncovered by this test.
This commit is contained in:
@@ -142,6 +142,26 @@ namespace OpenSim.Data.Tests
|
||||
Assert.That(r2.RegionUUID, Is.EqualTo(region2));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void T101_UpdateRegionInfo()
|
||||
{
|
||||
bool blockfly = true;
|
||||
double sunpos = 0.5;
|
||||
UUID cov = UUID.Random();
|
||||
|
||||
RegionSettings r1 = db.LoadRegionSettings(region1);
|
||||
r1.BlockFly = blockfly;
|
||||
r1.SunPosition = sunpos;
|
||||
r1.Covenant = cov;
|
||||
db.StoreRegionSettings(r1);
|
||||
|
||||
RegionSettings r2 = db.LoadRegionSettings(region1);
|
||||
Assert.That(r2.RegionUUID, Is.EqualTo(region1));
|
||||
Assert.That(r2.SunPosition, Is.EqualTo(sunpos));
|
||||
Assert.That(r2.BlockFly, Is.EqualTo(blockfly));
|
||||
Assert.That(r2.Covenant, Is.EqualTo(cov));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void T300_NoTerrain()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user