diff options
author | AlexRa | 2010-05-17 18:40:25 +0300 |
---|---|---|
committer | AlexRa | 2010-05-23 11:47:59 +0300 |
commit | 749cf0f6eb52ee147b05e120c6763cb8846ce32f (patch) | |
tree | 5db7590fa17a956c4857fceabb9d6e026135b21c | |
parent | EstateData tests passing on all DBs (diff) | |
download | opensim-SC-749cf0f6eb52ee147b05e120c6763cb8846ce32f.zip opensim-SC-749cf0f6eb52ee147b05e120c6763cb8846ce32f.tar.gz opensim-SC-749cf0f6eb52ee147b05e120c6763cb8846ce32f.tar.bz2 opensim-SC-749cf0f6eb52ee147b05e120c6763cb8846ce32f.tar.xz |
Bugfix in tests (must clear db before migrations, not after)
-rw-r--r-- | OpenSim/Data/Tests/EstateTests.cs | 2 | ||||
-rw-r--r-- | OpenSim/Data/Tests/InventoryTests.cs | 2 | ||||
-rw-r--r-- | OpenSim/Data/Tests/RegionTests.cs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Data/Tests/EstateTests.cs b/OpenSim/Data/Tests/EstateTests.cs index 39ecb89..4893cc7 100644 --- a/OpenSim/Data/Tests/EstateTests.cs +++ b/OpenSim/Data/Tests/EstateTests.cs | |||
@@ -74,9 +74,9 @@ namespace OpenSim.Data.Tests | |||
74 | 74 | ||
75 | protected override void InitService(object service) | 75 | protected override void InitService(object service) |
76 | { | 76 | { |
77 | ClearDB(); | ||
77 | db = (IEstateDataStore)service; | 78 | db = (IEstateDataStore)service; |
78 | db.Initialise(m_connStr); | 79 | db.Initialise(m_connStr); |
79 | ClearDB(); | ||
80 | } | 80 | } |
81 | 81 | ||
82 | private void ClearDB() | 82 | private void ClearDB() |
diff --git a/OpenSim/Data/Tests/InventoryTests.cs b/OpenSim/Data/Tests/InventoryTests.cs index 876dcf9..d5f3be4 100644 --- a/OpenSim/Data/Tests/InventoryTests.cs +++ b/OpenSim/Data/Tests/InventoryTests.cs | |||
@@ -88,9 +88,9 @@ namespace OpenSim.Data.Tests | |||
88 | 88 | ||
89 | protected override void InitService(object service) | 89 | protected override void InitService(object service) |
90 | { | 90 | { |
91 | ClearDB(); | ||
91 | db = (IInventoryDataPlugin)service; | 92 | db = (IInventoryDataPlugin)service; |
92 | db.Initialise(m_connStr); | 93 | db.Initialise(m_connStr); |
93 | ClearDB(); | ||
94 | } | 94 | } |
95 | 95 | ||
96 | private void ClearDB() | 96 | private void ClearDB() |
diff --git a/OpenSim/Data/Tests/RegionTests.cs b/OpenSim/Data/Tests/RegionTests.cs index 2451ef0..f38dc4a 100644 --- a/OpenSim/Data/Tests/RegionTests.cs +++ b/OpenSim/Data/Tests/RegionTests.cs | |||
@@ -100,9 +100,9 @@ namespace OpenSim.Data.Tests | |||
100 | 100 | ||
101 | protected override void InitService(object service) | 101 | protected override void InitService(object service) |
102 | { | 102 | { |
103 | ClearDB(); | ||
103 | db = (IRegionDataStore)service; | 104 | db = (IRegionDataStore)service; |
104 | db.Initialise(m_connStr); | 105 | db.Initialise(m_connStr); |
105 | ClearDB(); | ||
106 | } | 106 | } |
107 | 107 | ||
108 | private void ClearDB() | 108 | private void ClearDB() |