Prefer WaitOne with TimeSpan
This commit is contained in:
@@ -61,9 +61,11 @@ namespace OpenMetaverse.TestClient
|
||||
Client.Assets.InitiateDownload += initiateDownloadDelegate;
|
||||
|
||||
// configure request to tell the simulator to send us the file
|
||||
List<string> parameters = new List<string>();
|
||||
parameters.Add("download filename");
|
||||
parameters.Add(fileName);
|
||||
List<string> parameters = new List<string>
|
||||
{
|
||||
"download filename",
|
||||
fileName
|
||||
};
|
||||
// send the request
|
||||
Client.Estate.EstateOwnerMessage("terrain", parameters);
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ namespace OpenMetaverse.TestClient
|
||||
Client.Estate.UploadTerrain(fileData, fileName);
|
||||
|
||||
// Wait for upload to complete. Upload request is fired in callback from first request
|
||||
if (!WaitForUploadComplete.WaitOne(120000, false))
|
||||
if (!WaitForUploadComplete.WaitOne(TimeSpan.FromMinutes(2), false))
|
||||
{
|
||||
Cleanup();
|
||||
return "Timeout waiting for terrain file upload";
|
||||
|
||||
Reference in New Issue
Block a user