diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/Tests/LLImageManagerTests.cs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/Tests/LLImageManagerTests.cs b/OpenSim/Region/ClientStack/Linden/UDP/Tests/LLImageManagerTests.cs index 83144e3..6aa8bcc 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/Tests/LLImageManagerTests.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/Tests/LLImageManagerTests.cs | |||
@@ -29,6 +29,7 @@ using System; | |||
29 | using System.IO; | 29 | using System.IO; |
30 | using System.Net; | 30 | using System.Net; |
31 | using System.Reflection; | 31 | using System.Reflection; |
32 | using System.Threading; | ||
32 | using log4net.Config; | 33 | using log4net.Config; |
33 | using Nini.Config; | 34 | using Nini.Config; |
34 | using NUnit.Framework; | 35 | using NUnit.Framework; |
@@ -105,7 +106,14 @@ namespace OpenSim.Region.ClientStack.LindenUDP.Tests | |||
105 | args.requestSequence = 1; | 106 | args.requestSequence = 1; |
106 | 107 | ||
107 | llim.EnqueueReq(args); | 108 | llim.EnqueueReq(args); |
108 | llim.ProcessImageQueue(20); | 109 | |
110 | // We now have to wait and hit the processing wheel, because the decoding is async | ||
111 | int i = 10; | ||
112 | while (i-- > 0) | ||
113 | { | ||
114 | llim.ProcessImageQueue(20); | ||
115 | Thread.Sleep(100); | ||
116 | } | ||
109 | 117 | ||
110 | Assert.That(tc.SentImageDataPackets.Count, Is.EqualTo(1)); | 118 | Assert.That(tc.SentImageDataPackets.Count, Is.EqualTo(1)); |
111 | } | 119 | } |