diff options
author | onefang | 2019-05-19 21:24:15 +1000 |
---|---|---|
committer | onefang | 2019-05-19 21:24:15 +1000 |
commit | 5e4d6cab00cb29cd088ab7b62ab13aff103b64cb (patch) | |
tree | a9fbc62df9eb2d1d9ba2698d8552eae71eca20d8 /OpenSim/Server/Handlers/Asset/Tests/AssetServerPostHandlerTests.cs | |
parent | Add a build script. (diff) | |
download | opensim-SC-5e4d6cab00cb29cd088ab7b62ab13aff103b64cb.zip opensim-SC-5e4d6cab00cb29cd088ab7b62ab13aff103b64cb.tar.gz opensim-SC-5e4d6cab00cb29cd088ab7b62ab13aff103b64cb.tar.bz2 opensim-SC-5e4d6cab00cb29cd088ab7b62ab13aff103b64cb.tar.xz |
Dump OpenSim 0.9.0.1 into it's own branch.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Server/Handlers/Asset/Tests/AssetServerPostHandlerTests.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/OpenSim/Server/Handlers/Asset/Tests/AssetServerPostHandlerTests.cs b/OpenSim/Server/Handlers/Asset/Tests/AssetServerPostHandlerTests.cs index faa6fb7..4d2228a 100644 --- a/OpenSim/Server/Handlers/Asset/Tests/AssetServerPostHandlerTests.cs +++ b/OpenSim/Server/Handlers/Asset/Tests/AssetServerPostHandlerTests.cs | |||
@@ -52,8 +52,8 @@ namespace OpenSim.Server.Handlers.Asset.Test | |||
52 | 52 | ||
53 | UUID assetId = TestHelpers.ParseTail(0x1); | 53 | UUID assetId = TestHelpers.ParseTail(0x1); |
54 | 54 | ||
55 | IConfigSource config = new IniConfigSource(); | 55 | IConfigSource config = new IniConfigSource(); |
56 | config.AddConfig("AssetService"); | 56 | config.AddConfig("AssetService"); |
57 | config.Configs["AssetService"].Set("StorageProvider", "OpenSim.Tests.Common.dll"); | 57 | config.Configs["AssetService"].Set("StorageProvider", "OpenSim.Tests.Common.dll"); |
58 | 58 | ||
59 | AssetService assetService = new AssetService(config); | 59 | AssetService assetService = new AssetService(config); |
@@ -72,7 +72,7 @@ namespace OpenSim.Server.Handlers.Asset.Test | |||
72 | XmlSerializer serializer = new XmlSerializer(typeof(AssetBase)); | 72 | XmlSerializer serializer = new XmlSerializer(typeof(AssetBase)); |
73 | serializer.Serialize(writer, asset); | 73 | serializer.Serialize(writer, asset); |
74 | writer.Flush(); | 74 | writer.Flush(); |
75 | } | 75 | } |
76 | 76 | ||
77 | buffer.Position = 0; | 77 | buffer.Position = 0; |
78 | asph.Handle(null, buffer, null, null); | 78 | asph.Handle(null, buffer, null, null); |
@@ -87,13 +87,13 @@ namespace OpenSim.Server.Handlers.Asset.Test | |||
87 | { | 87 | { |
88 | TestHelpers.InMethod(); | 88 | TestHelpers.InMethod(); |
89 | 89 | ||
90 | IConfigSource config = new IniConfigSource(); | 90 | IConfigSource config = new IniConfigSource(); |
91 | config.AddConfig("AssetService"); | 91 | config.AddConfig("AssetService"); |
92 | config.Configs["AssetService"].Set("StorageProvider", "OpenSim.Tests.Common.dll"); | 92 | config.Configs["AssetService"].Set("StorageProvider", "OpenSim.Tests.Common.dll"); |
93 | 93 | ||
94 | AssetService assetService = new AssetService(config); | 94 | AssetService assetService = new AssetService(config); |
95 | 95 | ||
96 | AssetServerPostHandler asph = new AssetServerPostHandler(assetService); | 96 | AssetServerPostHandler asph = new AssetServerPostHandler(assetService); |
97 | 97 | ||
98 | MemoryStream buffer = new MemoryStream(); | 98 | MemoryStream buffer = new MemoryStream(); |
99 | byte[] badData = new byte[] { 0x48, 0x65, 0x6c, 0x6c, 0x6f }; | 99 | byte[] badData = new byte[] { 0x48, 0x65, 0x6c, 0x6c, 0x6f }; |