Prefer WaitOne with TimeSpan

This commit is contained in:
cinder
2025-01-13 07:44:05 -06:00
parent 6380fe19d2
commit d412aa3905
47 changed files with 119 additions and 109 deletions

View File

@@ -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);

View File

@@ -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";