diff options
author | AlexRa | 2010-05-23 11:31:19 +0300 |
---|---|---|
committer | AlexRa | 2010-05-23 11:48:22 +0300 |
commit | 89b7c64b6f491c4f703bb8fe28987ee5e3d5c50f (patch) | |
tree | 11b003fc0d6ede85acbe50f47bf95b36c6076614 /OpenSim/Data/Tests/AssetTests.cs | |
parent | Further corrections to MS SQL stores (now passes all tests) (diff) | |
download | opensim-SC_OLD-89b7c64b6f491c4f703bb8fe28987ee5e3d5c50f.zip opensim-SC_OLD-89b7c64b6f491c4f703bb8fe28987ee5e3d5c50f.tar.gz opensim-SC_OLD-89b7c64b6f491c4f703bb8fe28987ee5e3d5c50f.tar.bz2 opensim-SC_OLD-89b7c64b6f491c4f703bb8fe28987ee5e3d5c50f.tar.xz |
Various minor changes in the data tests
Diffstat (limited to 'OpenSim/Data/Tests/AssetTests.cs')
-rw-r--r-- | OpenSim/Data/Tests/AssetTests.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Data/Tests/AssetTests.cs b/OpenSim/Data/Tests/AssetTests.cs index d228c1f..d771053 100644 --- a/OpenSim/Data/Tests/AssetTests.cs +++ b/OpenSim/Data/Tests/AssetTests.cs | |||
@@ -106,10 +106,18 @@ namespace OpenSim.Data.Tests | |||
106 | 106 | ||
107 | protected override void InitService(object service) | 107 | protected override void InitService(object service) |
108 | { | 108 | { |
109 | ClearDB(); | ||
109 | m_db = (TAssetData)service; | 110 | m_db = (TAssetData)service; |
110 | m_db.Initialise(m_connStr); | 111 | m_db.Initialise(m_connStr); |
111 | } | 112 | } |
112 | 113 | ||
114 | private void ClearDB() | ||
115 | { | ||
116 | DropTables("assets"); | ||
117 | ResetMigrations("AssetStore"); | ||
118 | } | ||
119 | |||
120 | |||
113 | [Test] | 121 | [Test] |
114 | public void T001_LoadEmpty() | 122 | public void T001_LoadEmpty() |
115 | { | 123 | { |