Revision 422c9598 trunk/Pithos.Core.Test/NetworkAgentTest.cs
b/trunk/Pithos.Core.Test/NetworkAgentTest.cs | ||
---|---|---|
1 | 1 |
using System; |
2 |
using System.Collections.Concurrent; |
|
2 | 3 |
using System.Collections.Generic; |
3 | 4 |
using System.IO; |
4 | 5 |
using System.Linq; |
... | ... | |
50 | 51 |
|
51 | 52 |
client.DeleteObject(null, FolderConstants.PithosContainer, fileName); |
52 | 53 |
|
53 |
var treeHash = await Signature.CalculateTreeHashAsync(filePath, accountInfo.BlockSize, accountInfo.BlockHash); |
|
54 |
var treeHash = await Signature.CalculateTreeHashAsync(filePath, accountInfo.BlockSize, accountInfo.BlockHash, 2);
|
|
54 | 55 |
var cloudFile = new ObjectInfo {Account = account, Container = "pithos"}; |
55 | 56 |
var fileInfo = new FileInfo(filePath); |
56 | 57 |
|
... | ... | |
96 | 97 |
.Wait(); |
97 | 98 |
|
98 | 99 |
Assert.IsTrue(File.Exists(filePath)); |
99 |
var treeHash = Signature.CalculateTreeHashAsync(filePath, accountInfo.BlockSize, accountInfo.BlockHash).Result; |
|
100 |
var treeHash = Signature.CalculateTreeHashAsync(filePath, accountInfo.BlockSize, accountInfo.BlockHash, 2).Result;
|
|
100 | 101 |
|
101 | 102 |
Assert.AreEqual(treeHash.TopHash, newHash.TopHash); |
102 | 103 |
|
Also available in: Unified diff