* Put a wait timeout on the archive test, just in case the archiver never returns
parent
fa88dac539
commit
e233aad098
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue