diff options
author | Justin Clarke Casey | 2009-04-14 17:15:09 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2009-04-14 17:15:09 +0000 |
commit | 1894157dd3608a15c3336efc2d58eee0de092610 (patch) | |
tree | cfecb8e2104d9a88e82670e27ecedbda0466fa88 /OpenSim/Framework/Communications/Tests/Cache | |
parent | * refactor: rename AssetCache.Initialize() to AssetCache.Reset() to avoid hav... (diff) | |
download | opensim-SC_OLD-1894157dd3608a15c3336efc2d58eee0de092610.zip opensim-SC_OLD-1894157dd3608a15c3336efc2d58eee0de092610.tar.gz opensim-SC_OLD-1894157dd3608a15c3336efc2d58eee0de092610.tar.bz2 opensim-SC_OLD-1894157dd3608a15c3336efc2d58eee0de092610.tar.xz |
* Explicitly start the asset server thread so that unit tests can run single rather than multi-threaded (which may be behind the occasional test freezes)
Diffstat (limited to 'OpenSim/Framework/Communications/Tests/Cache')
-rw-r--r-- | OpenSim/Framework/Communications/Tests/Cache/AssetCacheTests.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Framework/Communications/Tests/Cache/AssetCacheTests.cs b/OpenSim/Framework/Communications/Tests/Cache/AssetCacheTests.cs index 9d9810b..264bfe1 100644 --- a/OpenSim/Framework/Communications/Tests/Cache/AssetCacheTests.cs +++ b/OpenSim/Framework/Communications/Tests/Cache/AssetCacheTests.cs | |||
@@ -62,7 +62,9 @@ namespace OpenSim.Framework.Communications.Tests | |||
62 | TestAssetDataPlugin assetPlugin = new TestAssetDataPlugin(); | 62 | TestAssetDataPlugin assetPlugin = new TestAssetDataPlugin(); |
63 | assetPlugin.CreateAsset(asset); | 63 | assetPlugin.CreateAsset(asset); |
64 | 64 | ||
65 | IAssetCache assetCache = new AssetCache(new SQLAssetServer(assetPlugin)); | 65 | IAssetServer assetServer = new SQLAssetServer(assetPlugin); |
66 | IAssetCache assetCache = new AssetCache(assetServer); | ||
67 | assetServer.Start(); | ||
66 | 68 | ||
67 | lock (this) | 69 | lock (this) |
68 | { | 70 | { |