aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Data')
-rw-r--r--OpenSim/Data/Tests/BasicUserTest.cs4
1 files changed, 1 insertions, 3 deletions
diff --git a/OpenSim/Data/Tests/BasicUserTest.cs b/OpenSim/Data/Tests/BasicUserTest.cs
index ef62a7d..24cb215 100644
--- a/OpenSim/Data/Tests/BasicUserTest.cs
+++ b/OpenSim/Data/Tests/BasicUserTest.cs
@@ -41,7 +41,6 @@ namespace OpenSim.Data.Tests
41{ 41{
42 public class BasicUserTest 42 public class BasicUserTest
43 { 43 {
44 //public UserDataBase db;
45 public IUserDataPlugin db; 44 public IUserDataPlugin db;
46 public UUID user1; 45 public UUID user1;
47 public UUID user2; 46 public UUID user2;
@@ -205,7 +204,7 @@ namespace OpenSim.Data.Tests
205 int tempu1, tempu2; 204 int tempu1, tempu2;
206 db.AddNewUserFriend(user1,user2, 1); 205 db.AddNewUserFriend(user1,user2, 1);
207 db.AddNewUserFriend(user1,user3, 2); 206 db.AddNewUserFriend(user1,user3, 2);
208 db.AddNewUserFriend(user1,user2, 4); //FAILS uniqueness in SQLite 207 db.AddNewUserFriend(user1,user2, 4);
209 List<FriendListItem> fl1 = db.GetUserFriendList(user1); 208 List<FriendListItem> fl1 = db.GetUserFriendList(user1);
210 Assert.That(fl1.Count,Is.EqualTo(2)); 209 Assert.That(fl1.Count,Is.EqualTo(2));
211 perms.Add(user2,1); 210 perms.Add(user2,1);
@@ -213,7 +212,6 @@ namespace OpenSim.Data.Tests
213 for (int i = 0; i < fl1.Count; i++) 212 for (int i = 0; i < fl1.Count; i++)
214 { 213 {
215 Assert.That(user1,Is.EqualTo(fl1[i].FriendListOwner)); 214 Assert.That(user1,Is.EqualTo(fl1[i].FriendListOwner));
216 // MySQL does not guarantee insertion order will be mantained
217 friends.Add(fl1[i].Friend,1); 215 friends.Add(fl1[i].Friend,1);
218 temp = perms[fl1[i].Friend]; 216 temp = perms[fl1[i].Friend];
219 Assert.That(temp,Is.EqualTo(fl1[i].FriendPerms)); 217 Assert.That(temp,Is.EqualTo(fl1[i].FriendPerms));