aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Servers/Tests/CachedGetAssetStreamHandlerTests.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2009-06-05 17:03:44 +0000
committerJustin Clarke Casey2009-06-05 17:03:44 +0000
commit87097f24848e9763ca7e3513b681a7b95fe5183f (patch)
tree75841e585cebfa670caa488496a1dfe28057024e /OpenSim/Framework/Servers/Tests/CachedGetAssetStreamHandlerTests.cs
parent* Fix problem where known missing assets would stop save oar ever completing (diff)
downloadopensim-SC_OLD-87097f24848e9763ca7e3513b681a7b95fe5183f.zip
opensim-SC_OLD-87097f24848e9763ca7e3513b681a7b95fe5183f.tar.gz
opensim-SC_OLD-87097f24848e9763ca7e3513b681a7b95fe5183f.tar.bz2
opensim-SC_OLD-87097f24848e9763ca7e3513b681a7b95fe5183f.tar.xz
* Fix unit tests so that they correctly handle 404 missing asset response
* I didn't think there were tests in this area - my bad
Diffstat (limited to 'OpenSim/Framework/Servers/Tests/CachedGetAssetStreamHandlerTests.cs')
-rw-r--r--OpenSim/Framework/Servers/Tests/CachedGetAssetStreamHandlerTests.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim/Framework/Servers/Tests/CachedGetAssetStreamHandlerTests.cs b/OpenSim/Framework/Servers/Tests/CachedGetAssetStreamHandlerTests.cs
index cf19468..fed4707 100644
--- a/OpenSim/Framework/Servers/Tests/CachedGetAssetStreamHandlerTests.cs
+++ b/OpenSim/Framework/Servers/Tests/CachedGetAssetStreamHandlerTests.cs
@@ -94,9 +94,11 @@ namespace OpenSim.Framework.Servers.Tests
94 public void TestHandleFetchMissingAsset() 94 public void TestHandleFetchMissingAsset()
95 { 95 {
96 IAssetCache assetCache = new TestAssetCache(); 96 IAssetCache assetCache = new TestAssetCache();
97 CachedGetAssetStreamHandler handler = new CachedGetAssetStreamHandler(assetCache); 97 CachedGetAssetStreamHandler handler;
98 OSHttpResponse response;
99 AssetBase asset = CreateTestEnvironment(out handler, out response);
98 100
99 GetAssetStreamHandlerTestHelpers.BaseFetchMissingAsset(handler); 101 GetAssetStreamHandlerTestHelpers.BaseFetchMissingAsset(handler, response);
100 } 102 }
101 103
102 [Test] 104 [Test]