mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
* Added Expression based ignores to the PropertyScrambler, which makes a lot of the tests clearer because I'm not constantly resetting properties.
This commit is contained in:
committed by
Teravus Ovares (Dan Olivares)
parent
5dde4a4cfa
commit
dd78c250ae
@@ -71,14 +71,7 @@ namespace OpenSim.Data.Tests
|
||||
|
||||
public void SuperInit()
|
||||
{
|
||||
try
|
||||
{
|
||||
XmlConfigurator.Configure();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
// I don't care, just leave log4net off
|
||||
}
|
||||
OpenSim.Tests.Common.TestLogging.LogToConsole();
|
||||
random = new Random();
|
||||
user1 = UUID.Random();
|
||||
user2 = UUID.Random();
|
||||
@@ -395,8 +388,7 @@ namespace OpenSim.Data.Tests
|
||||
{
|
||||
UUID id = user5;
|
||||
UserProfileData u = db.GetUserByUUID(id);
|
||||
ScrambleForTesting.Scramble(u);
|
||||
u.ID = id;
|
||||
new PropertyScrambler<UserProfileData>().DontScramble(x=>x.ID).Scramble(u);
|
||||
|
||||
db.UpdateUserProfile(u);
|
||||
UserProfileData u1a = db.GetUserByUUID(id);
|
||||
|
||||
Reference in New Issue
Block a user