Revision 2341c603 trunk/Pithos.Core.Test/NetworkAgentTest.cs

b/trunk/Pithos.Core.Test/NetworkAgentTest.cs
4 4
using System.IO;
5 5
using System.Linq;
6 6
using System.Text;
7
using System.Threading;
7 8
using System.Threading.Tasks;
8 9
using NUnit.Framework;
9 10
using Pithos.Core.Agents;
......
56 57
            var fileInfo = new FileInfo(filePath);
57 58

  
58 59
            var uploader = new Uploader();
59
            uploader.UploadWithHashMap(accountInfo,cloudFile,fileInfo,fileName,treeHash);
60
            uploader.UploadWithHashMap(accountInfo,cloudFile,fileInfo,fileName,treeHash, CancellationToken.None);
60 61
            
61 62
            var newHash = await client.GetHashMap(null, FolderConstants.PithosContainer, fileName);
62 63

  
......
93 94

  
94 95
            var newHash = client.GetHashMap(null, FolderConstants.PithosContainer, fileName).Result;
95 96
            var downloader = new Downloader();
96
            downloader.DownloadWithBlocks(accountInfo, client, cloudFile, new Uri(fileName, UriKind.Relative), filePath, newHash)
97
            downloader.DownloadWithBlocks(accountInfo, client, cloudFile, new Uri(fileName, UriKind.Relative), filePath, newHash, CancellationToken.None)
97 98
                .Wait();
98 99

  
99 100
            Assert.IsTrue(File.Exists(filePath));

Also available in: Unified diff