Skip to content

Commit

Permalink
chore: upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
richardschneider committed Aug 15, 2019
1 parent 1035f58 commit 9ee6b15
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 4 deletions.
2 changes: 1 addition & 1 deletion IpfsCli/IpfsCli.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<TargetFramework>netcoreapp2.2</TargetFramework>
<TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>

<AssemblyName>csipfs</AssemblyName>
Expand Down
2 changes: 1 addition & 1 deletion IpfsServer/IpfsServer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

</PropertyGroup>
<ItemGroup>
<PackageReference Include="Ipfs.Core" Version="0.52.2" />
<PackageReference Include="Ipfs.Core" Version="0.53.1" />
<PackageReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.1.9" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="4.0.1" />
Expand Down
4 changes: 2 additions & 2 deletions src/IpfsEngine.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Ipfs.Core" Version="0.52.2" />
<PackageReference Include="Ipfs.Core" Version="0.53.1" />
<PackageReference Include="Makaretu.Dns.Unicast" Version="0.11.1" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.2" />
<PackageReference Include="Nito.AsyncEx.Coordination" Version="5.0.0" />
<PackageReference Include="PeerTalk" Version="0.14.4" />
<PackageReference Include="PeerTalk" Version="0.15.0" />
<PackageReference Include="PeterO.Cbor" Version="3.1.0" />
<PackageReference Include="Portable.BouncyCastle" Version="1.8.5" />
<PackageReference Include="protobuf-net" Version="2.4.0" />
Expand Down
34 changes: 34 additions & 0 deletions test/CoreApi/FileSystemApiTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,40 @@ public void AddDirectory_WithCidEncoding()
}
}

[TestMethod]
public async Task AddDirectoryRecursive_ObjectLinks()
{
var ipfs = TestFixture.Ipfs;
var temp = MakeTemp();
try
{
var dir = await ipfs.FileSystem.AddDirectoryAsync(temp, true);
Assert.IsTrue(dir.IsDirectory);

var cid = dir.Id;
var i = 0;
var allLinks = new List<IMerkleLink>();
while (cid != null)
{
var links = await ipfs.Object.LinksAsync(cid);
allLinks.AddRange(links);
cid = (i < allLinks.Count) ? allLinks[i++].Id : null;
}

Assert.AreEqual(6, allLinks.Count);
Assert.AreEqual("alpha.txt", allLinks[0].Name);
Assert.AreEqual("beta.txt", allLinks[1].Name);
Assert.AreEqual("x", allLinks[2].Name);
Assert.AreEqual("x.txt", allLinks[3].Name);
Assert.AreEqual("y", allLinks[4].Name);
Assert.AreEqual("y.txt", allLinks[5].Name);
}
finally
{
Directory.Delete(temp, true);
}
}

[TestMethod]
[Ignore("https://github.com/richardschneider/net-ipfs-engine/issues/74")]
public async Task ReadTextFromNetwork()
Expand Down

0 comments on commit 9ee6b15

Please sign in to comment.