Skip to content

Commit 718cdf3

Browse files
test(DhtApi): give more time
1 parent b1633e2 commit 718cdf3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ environment:
3030

3131
# tools we need for bulding/testing/deploying
3232
install:
33-
- dotnet --info
33+
- dotnet --version
3434
- choco install gitversion.portable -y
3535
- nuget update -self
3636
- choco install docfx -y

test/CoreApi/DhtApiTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class DhtApiTest
1818
public async Task FindPeer()
1919
{
2020
var ipfs = TestFixture.Ipfs;
21-
var cts = new CancellationTokenSource(TimeSpan.FromSeconds(30));
21+
var cts = new CancellationTokenSource(TimeSpan.FromMinutes(2));
2222
var mars = await ipfs.Dht.FindPeerAsync("QmSoLMeWqB7YGVLJN3pNLQpmmEk35v6wYtsMGLzSr5QBU3", cts.Token);
2323
Assert.IsNotNull(mars);
2424
}
@@ -27,7 +27,7 @@ public async Task FindPeer()
2727
public async Task FindProviders()
2828
{
2929
var ipfs = TestFixture.Ipfs;
30-
var cts = new CancellationTokenSource(TimeSpan.FromSeconds(30));
30+
var cts = new CancellationTokenSource(TimeSpan.FromMinutes(2));
3131
var providers = await ipfs.Dht.FindProvidersAsync(helloWorldID, 1, cts.Token);
3232
Assert.AreNotEqual(0, providers.Count());
3333
}

0 commit comments

Comments
 (0)