Skip to content

Commit 8391aac

Browse files
tests: go-ipfs v0.4.18 breaks some tests
1 parent ca26615 commit 8391aac

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

test/CoreApi/BlockApiTest.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ public void Remove_Unknown()
149149
public async Task Remove_Unknown_OK()
150150
{
151151
var cid = await ipfs.Block.RemoveAsync("QmPv52ekjS75L4JmHpXVeuJ5uX2ecSfSZo88NSyxwA3rFF", true);
152-
Assert.AreEqual(null, cid);
153152
}
154153

155154
}

test/CoreApi/GenericApiTest.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ public async Task Peer_Node_Info()
2222
{
2323
var ipfs = TestFixture.Ipfs;
2424
Peer node;
25-
foreach (var peer in await ipfs.Bootstrap.ListAsync())
25+
var peers = await ipfs.Bootstrap.ListAsync();
26+
foreach (var peer in peers)
2627
{
2728
try
2829
{
@@ -33,7 +34,7 @@ public async Task Peer_Node_Info()
3334
continue;
3435
}
3536
Assert.IsInstanceOfType(node, typeof(Peer));
36-
break;
37+
return;
3738
}
3839
}
3940

test/CoreApi/SwarmApiTest.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ public async Task Connection()
6666
{
6767
try
6868
{
69-
await ipfs.Swarm.DisconnectAsync(peer.ConnectedAddress);
7069
await ipfs.Swarm.ConnectAsync(peer.ConnectedAddress);
7170
return;
7271
}

0 commit comments

Comments
 (0)