* Put a wait timeout on the archive test, just in case the archiver never returns

0.6.3-post-fixes
Justin Clarke Casey 2009-01-30 21:39:54 +00:00
parent fa88dac539
commit e233aad098
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ namespace OpenSim.Region.Environment.Modules.World.Archiver.Tests
EventWaitHandle waitHandle = new ManualResetEvent(false); EventWaitHandle waitHandle = new ManualResetEvent(false);
MemoryStream archiveWriteStream = new MemoryStream(); MemoryStream archiveWriteStream = new MemoryStream();
archiverModule.ArchiveRegion(archiveWriteStream, waitHandle); archiverModule.ArchiveRegion(archiveWriteStream, waitHandle);
waitHandle.WaitOne(); waitHandle.WaitOne(60000, true);
byte[] archive = archiveWriteStream.ToArray(); byte[] archive = archiveWriteStream.ToArray();
MemoryStream archiveReadStream = new MemoryStream(archive); MemoryStream archiveReadStream = new MemoryStream(archive);