mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 03:45:35 +08:00
* Fix unit tests so that they correctly handle 404 missing asset response
* I didn't think there were tests in this area - my bad
This commit is contained in:
@@ -94,10 +94,11 @@ namespace OpenSim.Framework.Servers.Tests
|
||||
[Test]
|
||||
public void TestHandleFetchMissingAsset()
|
||||
{
|
||||
IAssetDataPlugin assetDataPlugin = new TestAssetDataPlugin();
|
||||
GetAssetStreamHandler handler = new GetAssetStreamHandler(assetDataPlugin);
|
||||
GetAssetStreamHandler handler;
|
||||
OSHttpResponse response;
|
||||
AssetBase asset = CreateTestEnvironment(out handler, out response);
|
||||
|
||||
GetAssetStreamHandlerTestHelpers.BaseFetchMissingAsset(handler);
|
||||
GetAssetStreamHandlerTestHelpers.BaseFetchMissingAsset(handler, response);
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
||||
Reference in New Issue
Block a user